ILIAS  trunk Revision v11.0_alpha-2658-ge2404539063
URITest Class Reference
+ Inheritance diagram for URITest:
+ Collaboration diagram for URITest:

Public Member Functions

const test_init ()
 
 test_ipv4 ()
 
 testIPv6 (string $host)
 
 test_localhost ()
 
 test_components ($uri)
 
 test_base_uri ($uri)
 
 test_base_uri_idempotent ($uri)
 
 test_no_path ()
 
 test_no_query ()
 
 test_authority_and_query ()
 
 test_authority_and_fragment ()
 
 test_authority_path_fragment ()
 
 test_path ()
 
 test_authority_only ()
 
 test_no_schema ()
 
 test_no_authority ()
 
 test_wrong_char_in_schema ()
 
 test_wrong_authority_in_schema_1 ()
 
 test_wrong_authority_in_schema_2 ()
 
 test_uri_invalid ()
 
 test_realpctenc ()
 
 test_fakepcenc ()
 
 test_alphadigit_start_host ()
 
 test_alphadigit_start_host_2 ()
 
 test_alphadigit_start_host_3 ()
 
 test_alphadigit_start_host_4 ()
 
 test_alphadigit_start_host_5 ()
 
 test_with_schema ($uri)
 
 test_with_schema_invalid_1 ()
 
 test_with_schema_invalid_2 ()
 
 test_with_port ($uri)
 
 test_with_port_invalid_1 ()
 
 test_with_port_invalid_2 ()
 
 test_with_host ($uri)
 
 test_with_host_invalid_1 ()
 
 test_with_host_invalid_3 ()
 
 test_with_host_invalid_4 ()
 
 test_with_authority ($uri)
 
 test_with_authority_invalid_1 ()
 
 test_with_authority_invalid_2 ()
 
 test_with_authority_invalid_3 ()
 
 test_with_authority_invalid_4 ()
 
 test_with_authority_invalid_5 ()
 
 test_with_authority_invalid_6 ()
 
 test_with_authority_invalid_7 ()
 
 test_with_authority_invalid_8 ()
 
 test_with_path ($uri)
 
 test_with_path_invalid_1 ()
 
 test_with_path_invalid_2 ()
 
 test_with_path_invalid_3 ()
 
 test_with_query ($uri)
 
 test_with_query_invalid_1 ()
 
 test_with_query_invalid_2 ()
 
 test_with_fragment ($uri)
 
 test_with_fragment_invalid_1 ()
 
 test_with_fragment_invalid_2 ()
 
 testToString ()
 
 testGetParameters ()
 
 testGetParameter (ILIAS\Data\URI $uri)
 
 testWithParameters (ILIAS\Data\URI $uri)
 
 testSubstituteParameter (ILIAS\Data\URI $uri)
 
 testAppendParameter (ILIAS\Data\URI $uri)
 
 testWithArrayParameters (ILIAS\Data\URI $uri)
 
 testWithOutParameters ()
 

Static Public Member Functions

static provideIPv6addresses ()
 

Private Attributes

const URI_COMPLETE = 'g+it://github.com:8080/someaccount/somerepo/somerepo.git?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_COMPLETE_IPV4 = 'g+it://10.0.0.86:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_COMPLETE_LOCALHOST = 'g+it://localhost:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_NO_PATH_1 = 'g-it://ilias%2Da.de:8080?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_NO_PATH_2 = 'g.it://amaz;on.co.uk:8080/?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_NO_QUERY_1 = 'git://one-letter-top-level.a:8080/someaccount/somerepo/somerepo.git/#fragment'
 
const URI_NO_QUERY_2 = 'git://github.com:8080/someaccount/somerepo/somerepo.git#fragment'
 
const URI_AUTHORITY_AND_QUERY_1 = 'git://github.com?query_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2'
 
const URI_AUTHORITY_AND_QUERY_2 = 'git://github.com/?qu/ery_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2'
 
const URI_AUTHORITY_AND_FRAGMENT = 'git://github.com:8080/#fragment$,;:A!\'*+()ar_1=val_1&'
 
const URI_AUTHORITY_PATH_FRAGMENT = 'git://git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git#frag:A!\'*+()arment'
 
const URI_PATH = 'git://git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git/'
 
const URI_AUTHORITY_ONLY = 'git://git$,;hub.com'
 
const URI_NO_SCHEMA = 'git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git/'
 
const URI_NO_AUTHORITY = 'git://:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_WRONG_SCHEMA = 'gi$t://git$,;hub.com'
 
const URI_WRONG_AUTHORITY_1 = 'git://git$,;hu<b.com:8080/someacc$,;ount/somerepo/somerepo.git/'
 
const URI_WRONG_AUTHORITY_2 = 'git://git$,;hu=b.com/someacc$,;ount/somerepo/somerepo.git/'
 
const URI_INVALID = 'https://host.de/ilias.php/"><script>alert(1)</script>?baseClass=ilObjChatroomGUI&cmd=getOSDNotifications&cmdMode=asynch&max_age=15192913'
 
const URI_FAKEPCENC = 'g+it://github.com:8080/someaccoun%t/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
 
const URI_REALPCTENC = 'g+it://github.com:8080/someaccount%2Fsomerepo/som%2brepo.git/?par_lower=val_%2b&par_upper=val_%C3%A1#fragment'
 
const PATH_REALPCTENC = 'someaccount%2Fsomerepo/som%2brepo.git'
 
const PARAMS_REALPCTENC
 
const const URI_HOST_ALPHADIG_START_1 = 'g+it://-github.com:8080/someaccount'
 
const URI_HOST_ALPHADIG_START_2 = 'g+it://github-.com:8080/someaccount'
 
const URI_HOST_ALPHADIG_START_3 = 'http://.'
 
const URI_HOST_ALPHADIG_START_4 = 'http://../'
 
const URI_HOST_ALPHADIG_START_5 = 'http://-error-.invalid/'
 
const URI_BASE = 'git://github.com:8080/someaccount/somerepo/somerepo.git'
 
const PARAMS
 

Detailed Description

Definition at line 26 of file URITest.php.

Member Function Documentation

◆ provideIPv6addresses()

static URITest::provideIPv6addresses ( )
static

Definition at line 119 of file URITest.php.

119  : array
120  {
121  return [
122  // Long form.
123  ['[1234:5678:9ABC:DEF0:1234:5678:9ABC:DEF0]'],
124  ['[1:2:3:4:5:6:7:8]'],
125  // Short form.
126  ['[::1]'],
127  ['[::]'],
128  ['[::Ff00]'],
129  ['[1::]'],
130  ['[::3:4:5:6:7:8]'],
131  ['[3:4:5:6:7:8::]'],
132  ['[12::34]'],
133  // Embedded IPv4 (long).
134  ['[1234:5678:9ABC:DEF0:1234:5678:123.123.123.123]'],
135  // Embedded IPv4 (short).
136  ['[::123.123.123.123]'],
137  ['[1::123.123.123.123]'],
138  ['[1:3:4::123.123.123.123]'],
139  ['[::f:a:123.123.123.123]'],
140  ];
141  }

◆ test_alphadigit_start_host()

URITest::test_alphadigit_start_host ( )

Definition at line 378 of file URITest.php.

378  : void
379  {
380  $this->expectException(InvalidArgumentException::class);
381  new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_1);
382  }

◆ test_alphadigit_start_host_2()

URITest::test_alphadigit_start_host_2 ( )

Definition at line 385 of file URITest.php.

385  : void
386  {
387  $this->expectException(InvalidArgumentException::class);
388  new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_2);
389  }

◆ test_alphadigit_start_host_3()

URITest::test_alphadigit_start_host_3 ( )

Definition at line 392 of file URITest.php.

392  : void
393  {
394  $this->expectException(InvalidArgumentException::class);
395  new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_3);
396  }

◆ test_alphadigit_start_host_4()

URITest::test_alphadigit_start_host_4 ( )

Definition at line 399 of file URITest.php.

399  : void
400  {
401  $this->expectException(InvalidArgumentException::class);
402  new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_4);
403  }

◆ test_alphadigit_start_host_5()

URITest::test_alphadigit_start_host_5 ( )

Definition at line 406 of file URITest.php.

406  : void
407  {
408  $this->expectException(InvalidArgumentException::class);
409  new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_5);
410  }

◆ test_authority_and_fragment()

URITest::test_authority_and_fragment ( )

Definition at line 267 of file URITest.php.

267  : void
268  {
269  $uri = new ILIAS\Data\URI(self::URI_AUTHORITY_AND_FRAGMENT);
270  $this->assertEquals('git', $uri->getSchema());
271  $this->assertEquals('github.com:8080', $uri->getAuthority());
272  $this->assertEquals('github.com', $uri->getHost());
273  $this->assertEquals('8080', $uri->getPort());
274  $this->assertNull($uri->getPath());
275  $this->assertNull($uri->getQuery());
276  $this->assertEquals('fragment$,;:A!\'*+()ar_1=val_1&', $uri->getFragment());
277  }

◆ test_authority_and_query()

URITest::test_authority_and_query ( )

Definition at line 245 of file URITest.php.

245  : void
246  {
247  $uri = new ILIAS\Data\URI(self::URI_AUTHORITY_AND_QUERY_1);
248  $this->assertEquals('git', $uri->getSchema());
249  $this->assertEquals('github.com', $uri->getAuthority());
250  $this->assertEquals('github.com', $uri->getHost());
251  $this->assertNull($uri->getPort());
252  $this->assertNull($uri->getPath());
253  $this->assertEquals('query_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2', $uri->getQuery());
254  $this->assertNull($uri->getFragment());
255 
256  $uri = new ILIAS\Data\URI(self::URI_AUTHORITY_AND_QUERY_2);
257  $this->assertEquals('git', $uri->getSchema());
258  $this->assertEquals('github.com', $uri->getAuthority());
259  $this->assertEquals('github.com', $uri->getHost());
260  $this->assertNull($uri->getPort());
261  $this->assertNull($uri->getPath());
262  $this->assertEquals('qu/ery_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2', $uri->getQuery());
263  $this->assertNull($uri->getFragment());
264  }

◆ test_authority_only()

URITest::test_authority_only ( )

Definition at line 307 of file URITest.php.

307  : void
308  {
309  $uri = new ILIAS\Data\URI(self::URI_AUTHORITY_ONLY);
310  $this->assertEquals('git', $uri->getSchema());
311  $this->assertEquals('git$,;hub.com', $uri->getAuthority());
312  $this->assertEquals('git$,;hub.com', $uri->getHost());
313  $this->assertNull($uri->getPort());
314  $this->assertNull($uri->getPath());
315  $this->assertNull($uri->getQuery());
316  $this->assertNull($uri->getFragment());
317  $this->assertEquals('git://git$,;hub.com', $uri->getBaseURI());
318  }

◆ test_authority_path_fragment()

URITest::test_authority_path_fragment ( )

Definition at line 280 of file URITest.php.

280  : void
281  {
282  $uri = new ILIAS\Data\URI(self::URI_AUTHORITY_PATH_FRAGMENT);
283  $this->assertEquals('git', $uri->getSchema());
284  $this->assertEquals('git$,;hub.com:8080', $uri->getAuthority());
285  $this->assertEquals('git$,;hub.com', $uri->getHost());
286  $this->assertEquals('8080', $uri->getPort());
287  $this->assertEquals('someacc$,;ount/somerepo/somerepo.git', $uri->getPath());
288  $this->assertNull($uri->getQuery());
289  $this->assertEquals('frag:A!\'*+()arment', $uri->getFragment());
290  }

◆ test_base_uri()

URITest::test_base_uri (   $uri)

Definition at line 170 of file URITest.php.

170  : void
171  {
172  $this->assertEquals('g+it://github.com:8080/someaccount/somerepo/somerepo.git', $uri->getBaseURI());
173  }

◆ test_base_uri_idempotent()

URITest::test_base_uri_idempotent (   $uri)

Definition at line 176 of file URITest.php.

176  : void
177  {
178  $base_uri = $uri->getBaseURI();
179  $this->assertEquals('g+it://github.com:8080/someaccount/somerepo/somerepo.git', $base_uri);
180  $this->assertEquals('g+it', $uri->getSchema());
181  $this->assertEquals('github.com:8080', $uri->getAuthority());
182  $this->assertEquals('github.com', $uri->getHost());
183  $this->assertEquals('8080', $uri->getPort());
184  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
185  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
186  $this->assertEquals('fragment', $uri->getFragment());
187 
188  $uri = new ILIAS\Data\URI($base_uri);
189  $this->assertEquals($base_uri, $uri->getBaseURI());
190  $this->assertEquals('g+it', $uri->getSchema());
191  $this->assertEquals('github.com:8080', $uri->getAuthority());
192  $this->assertEquals('github.com', $uri->getHost());
193  $this->assertEquals('8080', $uri->getPort());
194  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
195  $this->assertNull($uri->getQuery());
196  $this->assertNull($uri->getFragment());
197  }

◆ test_components()

URITest::test_components (   $uri)

Definition at line 158 of file URITest.php.

158  : void
159  {
160  $this->assertEquals('g+it', $uri->getSchema());
161  $this->assertEquals('github.com:8080', $uri->getAuthority());
162  $this->assertEquals('github.com', $uri->getHost());
163  $this->assertEquals('8080', $uri->getPort());
164  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
165  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
166  $this->assertEquals('fragment', $uri->getFragment());
167  }

◆ test_fakepcenc()

URITest::test_fakepcenc ( )

Definition at line 371 of file URITest.php.

371  : void
372  {
373  $this->expectException(InvalidArgumentException::class);
374  new ILIAS\Data\URI(self::URI_FAKEPCENC);
375  }

◆ test_init()

const URITest::test_init ( )

Definition at line 87 of file URITest.php.

88  {
89  return new ILIAS\Data\URI(self::URI_COMPLETE);
90  }
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34

◆ test_ipv4()

URITest::test_ipv4 ( )

Definition at line 93 of file URITest.php.

93  : void
94  {
95  $uri = new ILIAS\Data\URI(self::URI_COMPLETE_IPV4);
96  $this->assertEquals('g+it', $uri->getSchema());
97  $this->assertEquals('10.0.0.86:8080', $uri->getAuthority());
98  $this->assertEquals('10.0.0.86', $uri->getHost());
99  $this->assertEquals(8080, $uri->getPort());
100  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
101  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
102  $this->assertEquals('fragment', $uri->getFragment());
103  }

◆ test_localhost()

URITest::test_localhost ( )

Definition at line 144 of file URITest.php.

144  : void
145  {
146  $uri = new ILIAS\Data\URI(self::URI_COMPLETE_LOCALHOST);
147  $this->assertEquals('g+it', $uri->getSchema());
148  $this->assertEquals('localhost:8080', $uri->getAuthority());
149  $this->assertEquals('localhost', $uri->getHost());
150  $this->assertEquals(8080, $uri->getPort());
151  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
152  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
153  $this->assertEquals('fragment', $uri->getFragment());
154  }

◆ test_no_authority()

URITest::test_no_authority ( )

Definition at line 328 of file URITest.php.

328  : void
329  {
330  $this->expectException(TypeError::class);
331  new ILIAS\Data\URI(self::URI_NO_AUTHORITY);
332  }

◆ test_no_path()

URITest::test_no_path ( )

Definition at line 201 of file URITest.php.

201  : void
202  {
203  $uri = new ILIAS\Data\URI(self::URI_NO_PATH_1);
204  $this->assertEquals('g-it', $uri->getSchema());
205  $this->assertEquals('ilias%2Da.de:8080', $uri->getAuthority());
206  $this->assertEquals('ilias%2Da.de', $uri->getHost());
207  $this->assertEquals('8080', $uri->getPort());
208  $this->assertNull($uri->getPath());
209  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
210  $this->assertEquals('fragment', $uri->getFragment());
211 
212  $uri = new ILIAS\Data\URI(self::URI_NO_PATH_2);
213  $this->assertEquals('g.it', $uri->getSchema());
214  $this->assertEquals('amaz;on.co.uk:8080', $uri->getAuthority());
215  $this->assertEquals('amaz;on.co.uk', $uri->getHost());
216  $this->assertEquals('8080', $uri->getPort());
217  $this->assertNull($uri->getPath());
218  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
219  $this->assertEquals('fragment', $uri->getFragment());
220  }

◆ test_no_query()

URITest::test_no_query ( )

Definition at line 223 of file URITest.php.

223  : void
224  {
225  $uri = new ILIAS\Data\URI(self::URI_NO_QUERY_1);
226  $this->assertEquals('git', $uri->getSchema());
227  $this->assertEquals('one-letter-top-level.a:8080', $uri->getAuthority());
228  $this->assertEquals('one-letter-top-level.a', $uri->getHost());
229  $this->assertEquals('8080', $uri->getPort());
230  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
231  $this->assertNull($uri->getQuery());
232  $this->assertEquals('fragment', $uri->getFragment());
233 
234  $uri = new ILIAS\Data\URI(self::URI_NO_QUERY_2);
235  $this->assertEquals('git', $uri->getSchema());
236  $this->assertEquals('github.com:8080', $uri->getAuthority());
237  $this->assertEquals('github.com', $uri->getHost());
238  $this->assertEquals('8080', $uri->getPort());
239  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
240  $this->assertNull($uri->getQuery());
241  $this->assertEquals('fragment', $uri->getFragment());
242  }

◆ test_no_schema()

URITest::test_no_schema ( )

Definition at line 321 of file URITest.php.

321  : void
322  {
323  $this->expectException(TypeError::class);
324  new ILIAS\Data\URI(self::URI_NO_SCHEMA);
325  }

◆ test_path()

URITest::test_path ( )

Definition at line 293 of file URITest.php.

293  : void
294  {
295  $uri = new ILIAS\Data\URI(self::URI_PATH);
296  $this->assertEquals('git', $uri->getSchema());
297  $this->assertEquals('git$,;hub.com:8080', $uri->getAuthority());
298  $this->assertEquals('git$,;hub.com', $uri->getHost());
299  $this->assertEquals('8080', $uri->getPort());
300  $this->assertEquals('someacc$,;ount/somerepo/somerepo.git', $uri->getPath());
301  $this->assertNull($uri->getQuery());
302  $this->assertNull($uri->getFragment());
303  $this->assertEquals('git://git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git', $uri->getBaseURI());
304  }

◆ test_realpctenc()

URITest::test_realpctenc ( )

Definition at line 363 of file URITest.php.

363  : void
364  {
365  $uri = new ILIAS\Data\URI(self::URI_REALPCTENC);
366  $this->assertEquals(self::PATH_REALPCTENC, $uri->getPath());
367  $this->assertEquals(self::PARAMS_REALPCTENC, $uri->getParameters());
368  }

◆ test_uri_invalid()

URITest::test_uri_invalid ( )

Definition at line 356 of file URITest.php.

356  : void
357  {
358  $this->expectException(InvalidArgumentException::class);
359  new ILIAS\Data\URI(self::URI_INVALID);
360  }

◆ test_with_authority()

URITest::test_with_authority (   $uri)

Definition at line 537 of file URITest.php.

537  : void
538  {
539  $this->assertEquals('g+it', $uri->getSchema());
540  $this->assertEquals('github.com:8080', $uri->getAuthority());
541  $this->assertEquals('github.com', $uri->getHost());
542  $this->assertEquals('8080', $uri->getPort());
543  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
544  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
545  $this->assertEquals('fragment', $uri->getFragment());
546  $uri = $uri->withAuthority('www1.ilias.de');
547  $this->assertEquals('g+it', $uri->getSchema());
548  $this->assertEquals('www1.ilias.de', $uri->getAuthority());
549  $this->assertEquals('www1.ilias.de', $uri->getHost());
550  $this->assertNull($uri->getPort());
551  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
552  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
553  $this->assertEquals('fragment', $uri->getFragment());
554  $uri = $uri->withAuthority('ilias.de:80');
555  $this->assertEquals('g+it', $uri->getSchema());
556  $this->assertEquals('ilias.de:80', $uri->getAuthority());
557  $this->assertEquals('ilias.de', $uri->getHost());
558  $this->assertEquals('80', $uri->getPort());
559  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
560  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
561  $this->assertEquals('fragment', $uri->getFragment());
562  $uri = $uri->withAuthority('a:1');
563  $this->assertEquals('g+it', $uri->getSchema());
564  $this->assertEquals('a:1', $uri->getAuthority());
565  $this->assertEquals('a', $uri->getHost());
566  $this->assertEquals(1, $uri->getPort());
567  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
568  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
569  $this->assertEquals('fragment', $uri->getFragment());
570  $uri = $uri->withAuthority('a');
571  $this->assertEquals('g+it', $uri->getSchema());
572  $this->assertEquals('a', $uri->getAuthority());
573  $this->assertEquals('a', $uri->getHost());
574  $this->assertNull($uri->getPort());
575  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
576  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
577  $this->assertEquals('fragment', $uri->getFragment());
578  $uri = $uri->withAuthority('1.2.3.4');
579  $this->assertEquals('g+it', $uri->getSchema());
580  $this->assertEquals('1.2.3.4', $uri->getAuthority());
581  $this->assertEquals('1.2.3.4', $uri->getHost());
582  $this->assertNull($uri->getPort());
583  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
584  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
585  $this->assertEquals('fragment', $uri->getFragment());
586  $uri = $uri->withAuthority('1.2.3.4:5');
587  $this->assertEquals('g+it', $uri->getSchema());
588  $this->assertEquals('1.2.3.4:5', $uri->getAuthority());
589  $this->assertEquals('1.2.3.4', $uri->getHost());
590  $this->assertEquals(5, $uri->getPort());
591  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
592  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
593  $this->assertEquals('fragment', $uri->getFragment());
594  $uri = $uri->withAuthority('localhost1');
595  $this->assertEquals('g+it', $uri->getSchema());
596  $this->assertEquals('localhost1', $uri->getAuthority());
597  $this->assertEquals('localhost1', $uri->getHost());
598  $this->assertNull($uri->getPort());
599  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
600  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
601  $this->assertEquals('fragment', $uri->getFragment());
602  $uri = $uri->withAuthority('localhost1:10');
603  $this->assertEquals('g+it', $uri->getSchema());
604  $this->assertEquals('localhost1:10', $uri->getAuthority());
605  $this->assertEquals('localhost1', $uri->getHost());
606  $this->assertEquals(10, $uri->getPort());
607  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
608  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
609  $this->assertEquals('fragment', $uri->getFragment());
610  }

◆ test_with_authority_invalid_1()

URITest::test_with_authority_invalid_1 ( )

Definition at line 613 of file URITest.php.

613  : void
614  {
615  $this->expectException(InvalidArgumentException::class);
616  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
617  $uri->withAuthority('-foo-.de');
618  }

◆ test_with_authority_invalid_2()

URITest::test_with_authority_invalid_2 ( )

Definition at line 621 of file URITest.php.

621  : void
622  {
623  $this->expectException(InvalidArgumentException::class);
624  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
625  $uri->withAuthority('-bar-.de:6060');
626  }

◆ test_with_authority_invalid_3()

URITest::test_with_authority_invalid_3 ( )

Definition at line 630 of file URITest.php.

630  : void
631  {
632  $this->expectException(InvalidArgumentException::class);
633  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
634  $uri->withHost('ilias.de:');
635  }

◆ test_with_authority_invalid_4()

URITest::test_with_authority_invalid_4 ( )

Definition at line 638 of file URITest.php.

638  : void
639  {
640  $this->expectException(InvalidArgumentException::class);
641  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
642  $uri->withHost('ilias.de: ');
643  }

◆ test_with_authority_invalid_5()

URITest::test_with_authority_invalid_5 ( )

Definition at line 646 of file URITest.php.

646  : void
647  {
648  $this->expectException(InvalidArgumentException::class);
649  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
650  $uri->withHost('ilias.de:aaa');
651  }

◆ test_with_authority_invalid_6()

URITest::test_with_authority_invalid_6 ( )

Definition at line 654 of file URITest.php.

654  : void
655  {
656  $this->expectException(InvalidArgumentException::class);
657  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
658  $uri->withAuthority('foo.de&<script>');
659  }

◆ test_with_authority_invalid_7()

URITest::test_with_authority_invalid_7 ( )

Definition at line 663 of file URITest.php.

663  : void
664  {
665  $this->expectException(InvalidArgumentException::class);
666  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
667  $uri->withAuthority('foo.de"><script>alert');
668  }

◆ test_with_authority_invalid_8()

URITest::test_with_authority_invalid_8 ( )

Definition at line 672 of file URITest.php.

672  : void
673  {
674  $this->expectException(InvalidArgumentException::class);
675  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
676  $uri->withAuthority(' :80');
677  }

◆ test_with_fragment()

URITest::test_with_fragment (   $uri)

Definition at line 776 of file URITest.php.

776  : void
777  {
778  $this->assertEquals('g+it', $uri->getSchema());
779  $this->assertEquals('github.com:8080', $uri->getAuthority());
780  $this->assertEquals('github.com', $uri->getHost());
781  $this->assertEquals('8080', $uri->getPort());
782  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
783  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
784  $this->assertEquals('fragment', $uri->getFragment());
785  $uri = $uri->withFragment('someFragment');
786  $this->assertEquals('g+it', $uri->getSchema());
787  $this->assertEquals('github.com:8080', $uri->getAuthority());
788  $this->assertEquals('github.com', $uri->getHost());
789  $this->assertEquals('8080', $uri->getPort());
790  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
791  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
792  $this->assertEquals('someFragment', $uri->getFragment());
793  $uri = $uri->withFragment();
794  $this->assertEquals('g+it', $uri->getSchema());
795  $this->assertEquals('github.com:8080', $uri->getAuthority());
796  $this->assertEquals('github.com', $uri->getHost());
797  $this->assertEquals('8080', $uri->getPort());
798  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
799  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
800  $this->assertNull($uri->getFragment());
801  }

◆ test_with_fragment_invalid_1()

URITest::test_with_fragment_invalid_1 ( )

Definition at line 804 of file URITest.php.

804  : void
805  {
806  $this->expectException(InvalidArgumentException::class);
807  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
808  $uri->withFragment('aaa[]');
809  }

◆ test_with_fragment_invalid_2()

URITest::test_with_fragment_invalid_2 ( )

Definition at line 812 of file URITest.php.

812  : void
813  {
814  $this->expectException(InvalidArgumentException::class);
815  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
816  $uri->withFragment('script>');
817  }

◆ test_with_host()

URITest::test_with_host (   $uri)

Definition at line 494 of file URITest.php.

494  : void
495  {
496  $this->assertEquals('g+it', $uri->getSchema());
497  $this->assertEquals('github.com:8080', $uri->getAuthority());
498  $this->assertEquals('github.com', $uri->getHost());
499  $this->assertEquals('8080', $uri->getPort());
500  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
501  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
502  $this->assertEquals('fragment', $uri->getFragment());
503  $uri = $uri->withHost('ilias.de');
504  $this->assertEquals('g+it', $uri->getSchema());
505  $this->assertEquals('ilias.de:8080', $uri->getAuthority());
506  $this->assertEquals('ilias.de', $uri->getHost());
507  $this->assertEquals('8080', $uri->getPort());
508  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
509  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
510  $this->assertEquals('fragment', $uri->getFragment());
511  }

◆ test_with_host_invalid_1()

URITest::test_with_host_invalid_1 ( )

Definition at line 514 of file URITest.php.

514  : void
515  {
516  $this->expectException(InvalidArgumentException::class);
517  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
518  $uri->withHost('-foo-.de');
519  }

◆ test_with_host_invalid_3()

URITest::test_with_host_invalid_3 ( )

Definition at line 521 of file URITest.php.

521  : void
522  {
523  $this->expectException(InvalidArgumentException::class);
524  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
525  $uri->withHost('');
526  }

◆ test_with_host_invalid_4()

URITest::test_with_host_invalid_4 ( )

Definition at line 529 of file URITest.php.

529  : void
530  {
531  $this->expectException(InvalidArgumentException::class);
532  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
533  $uri->withHost('ilias.de"><script');
534  }

◆ test_with_path()

URITest::test_with_path (   $uri)

Definition at line 680 of file URITest.php.

680  : void
681  {
682  $this->assertEquals('g+it', $uri->getSchema());
683  $this->assertEquals('github.com:8080', $uri->getAuthority());
684  $this->assertEquals('github.com', $uri->getHost());
685  $this->assertEquals('8080', $uri->getPort());
686  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
687  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
688  $this->assertEquals('fragment', $uri->getFragment());
689  $uri = $uri->withPath('a/b');
690  $this->assertEquals('g+it', $uri->getSchema());
691  $this->assertEquals('github.com:8080', $uri->getAuthority());
692  $this->assertEquals('github.com', $uri->getHost());
693  $this->assertEquals('8080', $uri->getPort());
694  $this->assertEquals('a/b', $uri->getPath());
695  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
696  $this->assertEquals('fragment', $uri->getFragment());
697  $uri = $uri->withPath();
698  $this->assertEquals('g+it', $uri->getSchema());
699  $this->assertEquals('github.com:8080', $uri->getAuthority());
700  $this->assertEquals('github.com', $uri->getHost());
701  $this->assertEquals('8080', $uri->getPort());
702  $this->assertNull($uri->getPath());
703  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
704  $this->assertEquals('fragment', $uri->getFragment());
705  }

◆ test_with_path_invalid_1()

URITest::test_with_path_invalid_1 ( )

Definition at line 708 of file URITest.php.

708  : void
709  {
710  $this->expectException(InvalidArgumentException::class);
711  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
712  $uri->withPath('/<script>/a');
713  }

◆ test_with_path_invalid_2()

URITest::test_with_path_invalid_2 ( )

Definition at line 716 of file URITest.php.

716  : void
717  {
718  $this->expectException(InvalidArgumentException::class);
719  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
720  $uri->withPath('//a/b');
721  }

◆ test_with_path_invalid_3()

URITest::test_with_path_invalid_3 ( )

Definition at line 724 of file URITest.php.

724  : void
725  {
726  $this->expectException(InvalidArgumentException::class);
727  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
728  $uri->withPath(':a/b');
729  }

◆ test_with_port()

URITest::test_with_port (   $uri)

Definition at line 449 of file URITest.php.

449  : void
450  {
451  $this->assertEquals('g+it', $uri->getSchema());
452  $this->assertEquals('github.com:8080', $uri->getAuthority());
453  $this->assertEquals('github.com', $uri->getHost());
454  $this->assertEquals('8080', $uri->getPort());
455  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
456  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
457  $this->assertEquals('fragment', $uri->getFragment());
458  $uri = $uri->withPort(80);
459  $this->assertEquals('g+it', $uri->getSchema());
460  $this->assertEquals('github.com:80', $uri->getAuthority());
461  $this->assertEquals('github.com', $uri->getHost());
462  $this->assertEquals('80', $uri->getPort());
463  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
464  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
465  $this->assertEquals('fragment', $uri->getFragment());
466  $uri = $uri->withPort();
467  $this->assertEquals('g+it', $uri->getSchema());
468  $this->assertEquals('github.com', $uri->getAuthority());
469  $this->assertEquals('github.com', $uri->getHost());
470  $this->assertNull($uri->getPort());
471  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
472  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
473  $this->assertEquals('fragment', $uri->getFragment());
474  }

◆ test_with_port_invalid_1()

URITest::test_with_port_invalid_1 ( )

Definition at line 478 of file URITest.php.

478  : void
479  {
480  $this->expectException(TypeError::class);
481  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
482  $uri->withPort('a111');
483  }

◆ test_with_port_invalid_2()

URITest::test_with_port_invalid_2 ( )

Definition at line 486 of file URITest.php.

486  : void
487  {
488  $this->expectException(TypeError::class);
489  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
490  $uri->withPort('foo');
491  }

◆ test_with_query()

URITest::test_with_query (   $uri)

Definition at line 732 of file URITest.php.

732  : void
733  {
734  $this->assertEquals('g+it', $uri->getSchema());
735  $this->assertEquals('github.com:8080', $uri->getAuthority());
736  $this->assertEquals('github.com', $uri->getHost());
737  $this->assertEquals('8080', $uri->getPort());
738  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
739  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
740  $this->assertEquals('fragment', $uri->getFragment());
741  $uri = $uri->withQuery('query_par_a1=val_a1');
742  $this->assertEquals('g+it', $uri->getSchema());
743  $this->assertEquals('github.com:8080', $uri->getAuthority());
744  $this->assertEquals('github.com', $uri->getHost());
745  $this->assertEquals('8080', $uri->getPort());
746  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
747  $this->assertEquals('query_par_a1=val_a1', $uri->getQuery());
748  $this->assertEquals('fragment', $uri->getFragment());
749  $uri = $uri->withQuery();
750  $this->assertEquals('g+it', $uri->getSchema());
751  $this->assertEquals('github.com:8080', $uri->getAuthority());
752  $this->assertEquals('github.com', $uri->getHost());
753  $this->assertEquals('8080', $uri->getPort());
754  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
755  $this->assertNull($uri->getQuery());
756  $this->assertEquals('fragment', $uri->getFragment());
757  }

◆ test_with_query_invalid_1()

URITest::test_with_query_invalid_1 ( )

Definition at line 760 of file URITest.php.

760  : void
761  {
762  $this->expectException(InvalidArgumentException::class);
763  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
764  $uri->withQuery('<script>a');
765  }

◆ test_with_query_invalid_2()

URITest::test_with_query_invalid_2 ( )

Definition at line 768 of file URITest.php.

768  : void
769  {
770  $this->expectException(InvalidArgumentException::class);
771  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
772  $uri->withQuery('aa[]');
773  }

◆ test_with_schema()

URITest::test_with_schema (   $uri)

Definition at line 413 of file URITest.php.

413  : void
414  {
415  $this->assertEquals('g+it', $uri->getSchema());
416  $this->assertEquals('github.com:8080', $uri->getAuthority());
417  $this->assertEquals('github.com', $uri->getHost());
418  $this->assertEquals('8080', $uri->getPort());
419  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
420  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
421  $this->assertEquals('fragment', $uri->getFragment());
422  $uri = $uri->withSchema('http');
423  $this->assertEquals('http', $uri->getSchema());
424  $this->assertEquals('github.com:8080', $uri->getAuthority());
425  $this->assertEquals('github.com', $uri->getHost());
426  $this->assertEquals('8080', $uri->getPort());
427  $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
428  $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
429  $this->assertEquals('fragment', $uri->getFragment());
430  }

◆ test_with_schema_invalid_1()

URITest::test_with_schema_invalid_1 ( )

Definition at line 433 of file URITest.php.

433  : void
434  {
435  $this->expectException(InvalidArgumentException::class);
436  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
437  $uri->withSchema('');
438  }

◆ test_with_schema_invalid_2()

URITest::test_with_schema_invalid_2 ( )

Definition at line 441 of file URITest.php.

441  : void
442  {
443  $this->expectException(InvalidArgumentException::class);
444  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
445  $uri->withSchema('1aa');
446  }

◆ test_wrong_authority_in_schema_1()

URITest::test_wrong_authority_in_schema_1 ( )

Definition at line 342 of file URITest.php.

342  : void
343  {
344  $this->expectException(InvalidArgumentException::class);
345  new ILIAS\Data\URI(self::URI_WRONG_AUTHORITY_1);
346  }

◆ test_wrong_authority_in_schema_2()

URITest::test_wrong_authority_in_schema_2 ( )

Definition at line 349 of file URITest.php.

349  : void
350  {
351  $this->expectException(InvalidArgumentException::class);
352  new ILIAS\Data\URI(self::URI_WRONG_AUTHORITY_2);
353  }

◆ test_wrong_char_in_schema()

URITest::test_wrong_char_in_schema ( )

Definition at line 335 of file URITest.php.

335  : void
336  {
337  $this->expectException(TypeError::class);
338  new ILIAS\Data\URI(self::URI_WRONG_SCHEMA);
339  }

◆ testAppendParameter()

URITest::testAppendParameter ( ILIAS\Data\URI  $uri)

Definition at line 872 of file URITest.php.

References $params.

872  : void
873  {
874  $params = [
875  'x' => 1, 'y' => 2,
876  'z' => 5
877  ];
878  $uri = $uri->withParameter('z', 5);
879  $this->assertEquals(
880  $params,
881  $uri->getParameters()
882  );
883  }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

◆ testGetParameter()

URITest::testGetParameter ( ILIAS\Data\URI  $uri)

Definition at line 840 of file URITest.php.

840  : void
841  {
842  $k = array_keys(self::PARAMS)[0];
843  $this->assertEquals(
844  self::PARAMS[$k],
845  $uri->getParameter($k)
846  );
847  }

◆ testGetParameters()

URITest::testGetParameters ( )

Definition at line 828 of file URITest.php.

References $url.

829  {
830  $url = self::URI_BASE . '?' . http_build_query(self::PARAMS);
831  $uri = new ILIAS\Data\URI($url);
832  $this->assertEquals(
833  self::PARAMS,
834  $uri->getParameters()
835  );
836  return $uri;
837  }
$url
Definition: shib_logout.php:68

◆ testIPv6()

URITest::testIPv6 ( string  $host)

Definition at line 107 of file URITest.php.

References null.

107  : void
108  {
109  $uri = new ILIAS\Data\URI('http://' . $host);
110  $this->assertEquals('http', $uri->getSchema());
111  $this->assertEquals($host, $uri->getAuthority());
112  $this->assertEquals($host, $uri->getHost());
113  $this->assertEquals(null, $uri->getPort());
114  $this->assertEquals(null, $uri->getPath());
115  $this->assertEquals(null, $uri->getQuery());
116  $this->assertEquals(null, $uri->getFragment());
117  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ testSubstituteParameter()

URITest::testSubstituteParameter ( ILIAS\Data\URI  $uri)

Definition at line 862 of file URITest.php.

862  : void
863  {
864  $uri = $uri->withParameter('x', 5);
865  $this->assertEquals(
866  5,
867  $uri->getParameter('x')
868  );
869  }

◆ testToString()

URITest::testToString ( )

Definition at line 819 of file URITest.php.

819  : void
820  {
821  $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
822  $this->assertEquals(
823  self::URI_COMPLETE,
824  $uri
825  );
826  }

◆ testWithArrayParameters()

URITest::testWithArrayParameters ( ILIAS\Data\URI  $uri)

Definition at line 886 of file URITest.php.

References $params.

886  : void
887  {
888  $params = ['x' => 1, 'y' => [10, 11, 12]];
889  $uri = $uri->withParameters($params);
890  $this->assertEquals(
891  $params,
892  $uri->getParameters()
893  );
894  $this->assertEquals(
895  'git://github.com:8080/someaccount/somerepo/somerepo.git?x=1&y%5B0%5D=10&y%5B1%5D=11&y%5B2%5D=12',
896  $uri
897  );
898  $this->assertEquals(
899  $params['y'],
900  $uri->getParameter('y')
901  );
902  }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

◆ testWithOutParameters()

URITest::testWithOutParameters ( )

Definition at line 904 of file URITest.php.

904  : void
905  {
906  $uri = new ILIAS\Data\URI(self::URI_NO_QUERY_2);
907  $this->assertEquals(
908  [],
909  $uri->getParameters()
910  );
911 
912  $this->assertNull($uri->getParameter('y'));
913 
914  $this->assertEquals(
915  self::URI_NO_QUERY_2,
916  (string) $uri
917  );
918  }

◆ testWithParameters()

URITest::testWithParameters ( ILIAS\Data\URI  $uri)

Definition at line 850 of file URITest.php.

References $params.

851  {
852  $params = ['x' => 1, 'y' => 2];
853  $uri = $uri->withParameters($params);
854  $this->assertEquals(
855  $params,
856  $uri->getParameters()
857  );
858  return $uri;
859  }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

Field Documentation

◆ PARAMS

const URITest::PARAMS
private
Initial value:
= [
'par_1' => 'val_1'

Definition at line 80 of file URITest.php.

◆ PARAMS_REALPCTENC

const URITest::PARAMS_REALPCTENC
private
Initial value:
= [
'par_lower' => 'val_+'

Definition at line 68 of file URITest.php.

◆ PATH_REALPCTENC

const URITest::PATH_REALPCTENC = 'someaccount%2Fsomerepo/som%2brepo.git'
private

Definition at line 67 of file URITest.php.

◆ URI_AUTHORITY_AND_FRAGMENT

const URITest::URI_AUTHORITY_AND_FRAGMENT = 'git://github.com:8080/#fragment$,;:A!\'*+()ar_1=val_1&'
private

Definition at line 44 of file URITest.php.

◆ URI_AUTHORITY_AND_QUERY_1

const URITest::URI_AUTHORITY_AND_QUERY_1 = 'git://github.com?query_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2'
private

Definition at line 41 of file URITest.php.

◆ URI_AUTHORITY_AND_QUERY_2

const URITest::URI_AUTHORITY_AND_QUERY_2 = 'git://github.com/?qu/ery_p$,;:A!\'*+()ar_1=val_1&quer?y_par_2=val_2'
private

Definition at line 42 of file URITest.php.

◆ URI_AUTHORITY_ONLY

const URITest::URI_AUTHORITY_ONLY = 'git://git$,;hub.com'
private

Definition at line 50 of file URITest.php.

◆ URI_AUTHORITY_PATH_FRAGMENT

const URITest::URI_AUTHORITY_PATH_FRAGMENT = 'git://git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git#frag:A!\'*+()arment'
private

Definition at line 46 of file URITest.php.

◆ URI_BASE

const URITest::URI_BASE = 'git://github.com:8080/someaccount/somerepo/somerepo.git'
private

Definition at line 79 of file URITest.php.

◆ URI_COMPLETE

const URITest::URI_COMPLETE = 'g+it://github.com:8080/someaccount/somerepo/somerepo.git?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 28 of file URITest.php.

◆ URI_COMPLETE_IPV4

const URITest::URI_COMPLETE_IPV4 = 'g+it://10.0.0.86:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 30 of file URITest.php.

◆ URI_COMPLETE_LOCALHOST

const URITest::URI_COMPLETE_LOCALHOST = 'g+it://localhost:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 32 of file URITest.php.

◆ URI_FAKEPCENC

const URITest::URI_FAKEPCENC = 'g+it://github.com:8080/someaccoun%t/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 64 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_1

const const URITest::URI_HOST_ALPHADIG_START_1 = 'g+it://-github.com:8080/someaccount'
private

Definition at line 73 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_2

const URITest::URI_HOST_ALPHADIG_START_2 = 'g+it://github-.com:8080/someaccount'
private

Definition at line 74 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_3

const URITest::URI_HOST_ALPHADIG_START_3 = 'http://.'
private

Definition at line 75 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_4

const URITest::URI_HOST_ALPHADIG_START_4 = 'http://../'
private

Definition at line 76 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_5

const URITest::URI_HOST_ALPHADIG_START_5 = 'http://-error-.invalid/'
private

Definition at line 77 of file URITest.php.

◆ URI_INVALID

const URITest::URI_INVALID = 'https://host.de/ilias.php/"><script>alert(1)</script>?baseClass=ilObjChatroomGUI&cmd=getOSDNotifications&cmdMode=asynch&max_age=15192913'
private

Definition at line 62 of file URITest.php.

◆ URI_NO_AUTHORITY

const URITest::URI_NO_AUTHORITY = 'git://:8080/someaccount/somerepo/somerepo.git/?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 54 of file URITest.php.

◆ URI_NO_PATH_1

const URITest::URI_NO_PATH_1 = 'g-it://ilias%2Da.de:8080?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 35 of file URITest.php.

◆ URI_NO_PATH_2

const URITest::URI_NO_PATH_2 = 'g.it://amaz;on.co.uk:8080/?query_par_1=val_1&query_par_2=val_2#fragment'
private

Definition at line 36 of file URITest.php.

◆ URI_NO_QUERY_1

const URITest::URI_NO_QUERY_1 = 'git://one-letter-top-level.a:8080/someaccount/somerepo/somerepo.git/#fragment'
private

Definition at line 38 of file URITest.php.

◆ URI_NO_QUERY_2

const URITest::URI_NO_QUERY_2 = 'git://github.com:8080/someaccount/somerepo/somerepo.git#fragment'
private

Definition at line 39 of file URITest.php.

◆ URI_NO_SCHEMA

const URITest::URI_NO_SCHEMA = 'git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git/'
private

Definition at line 52 of file URITest.php.

◆ URI_PATH

const URITest::URI_PATH = 'git://git$,;hub.com:8080/someacc$,;ount/somerepo/somerepo.git/'
private

Definition at line 48 of file URITest.php.

◆ URI_REALPCTENC

const URITest::URI_REALPCTENC = 'g+it://github.com:8080/someaccount%2Fsomerepo/som%2brepo.git/?par_lower=val_%2b&par_upper=val_%C3%A1#fragment'
private

Definition at line 66 of file URITest.php.

◆ URI_WRONG_AUTHORITY_1

const URITest::URI_WRONG_AUTHORITY_1 = 'git://git$,;hu<b.com:8080/someacc$,;ount/somerepo/somerepo.git/'
private

Definition at line 58 of file URITest.php.

◆ URI_WRONG_AUTHORITY_2

const URITest::URI_WRONG_AUTHORITY_2 = 'git://git$,;hu=b.com/someacc$,;ount/somerepo/somerepo.git/'
private

Definition at line 59 of file URITest.php.

◆ URI_WRONG_SCHEMA

const URITest::URI_WRONG_SCHEMA = 'gi$t://git$,;hub.com'
private

Definition at line 56 of file URITest.php.


The documentation for this class was generated from the following file: