ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
URITest Class Reference
+ Inheritance diagram for URITest:
+ Collaboration diagram for URITest:

Public Member Functions

 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_invalid_characters_in_query ()
 
 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#fragA!\'*+()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_INVALID_CHARACTERS_IN_QUERY = 'git://github.com?query_p=:&query_p2=ilias@ilias.de'
 
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 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 120 of file URITest.php.

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

◆ test_alphadigit_start_host()

URITest::test_alphadigit_start_host ( )

Definition at line 386 of file URITest.php.

386 : void
387 {
388 $this->expectException(InvalidArgumentException::class);
389 new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_1);
390 }
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35

◆ test_alphadigit_start_host_2()

URITest::test_alphadigit_start_host_2 ( )

Definition at line 393 of file URITest.php.

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

◆ test_alphadigit_start_host_3()

URITest::test_alphadigit_start_host_3 ( )

Definition at line 400 of file URITest.php.

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

◆ test_alphadigit_start_host_4()

URITest::test_alphadigit_start_host_4 ( )

Definition at line 407 of file URITest.php.

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

◆ test_alphadigit_start_host_5()

URITest::test_alphadigit_start_host_5 ( )

Definition at line 414 of file URITest.php.

414 : void
415 {
416 $this->expectException(InvalidArgumentException::class);
417 new ILIAS\Data\URI(self::URI_HOST_ALPHADIG_START_5);
418 }

◆ test_authority_and_fragment()

URITest::test_authority_and_fragment ( )

Definition at line 268 of file URITest.php.

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

◆ test_authority_and_query()

URITest::test_authority_and_query ( )

Definition at line 246 of file URITest.php.

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

◆ test_authority_only()

URITest::test_authority_only ( )

Definition at line 308 of file URITest.php.

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

◆ test_authority_path_fragment()

URITest::test_authority_path_fragment ( )

Definition at line 281 of file URITest.php.

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

◆ test_base_uri()

URITest::test_base_uri (   $uri)

Definition at line 171 of file URITest.php.

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

◆ test_base_uri_idempotent()

URITest::test_base_uri_idempotent (   $uri)

Definition at line 177 of file URITest.php.

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

◆ test_components()

URITest::test_components (   $uri)

Definition at line 159 of file URITest.php.

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

◆ test_fakepcenc()

URITest::test_fakepcenc ( )

Definition at line 379 of file URITest.php.

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

◆ test_init()

URITest::test_init ( )

Definition at line 88 of file URITest.php.

89 {
90 return new ILIAS\Data\URI(self::URI_COMPLETE);
91 }

◆ test_invalid_characters_in_query()

URITest::test_invalid_characters_in_query ( )

Definition at line 364 of file URITest.php.

364 : void
365 {
366 $this->expectException(InvalidArgumentException::class);
367 new ILIAS\Data\URI(self::URI_INVALID_CHARACTERS_IN_QUERY);
368 }

◆ test_ipv4()

URITest::test_ipv4 ( )

Definition at line 94 of file URITest.php.

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

◆ test_localhost()

URITest::test_localhost ( )

Definition at line 145 of file URITest.php.

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

◆ test_no_authority()

URITest::test_no_authority ( )

Definition at line 329 of file URITest.php.

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

◆ test_no_path()

URITest::test_no_path ( )

Definition at line 202 of file URITest.php.

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

◆ test_no_query()

URITest::test_no_query ( )

Definition at line 224 of file URITest.php.

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

◆ test_no_schema()

URITest::test_no_schema ( )

Definition at line 322 of file URITest.php.

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

◆ test_path()

URITest::test_path ( )

Definition at line 294 of file URITest.php.

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

◆ test_realpctenc()

URITest::test_realpctenc ( )

Definition at line 371 of file URITest.php.

371 : void
372 {
373 $uri = new ILIAS\Data\URI(self::URI_REALPCTENC);
374 $this->assertEquals(self::PATH_REALPCTENC, $uri->getPath());
375 $this->assertEquals(self::PARAMS_REALPCTENC, $uri->getParameters());
376 }

◆ test_uri_invalid()

URITest::test_uri_invalid ( )

Definition at line 357 of file URITest.php.

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

◆ test_with_authority()

URITest::test_with_authority (   $uri)

Definition at line 545 of file URITest.php.

545 : void
546 {
547 $this->assertEquals('g+it', $uri->getSchema());
548 $this->assertEquals('github.com:8080', $uri->getAuthority());
549 $this->assertEquals('github.com', $uri->getHost());
550 $this->assertEquals('8080', $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('www1.ilias.de');
555 $this->assertEquals('g+it', $uri->getSchema());
556 $this->assertEquals('www1.ilias.de', $uri->getAuthority());
557 $this->assertEquals('www1.ilias.de', $uri->getHost());
558 $this->assertNull($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('ilias.de:80');
563 $this->assertEquals('g+it', $uri->getSchema());
564 $this->assertEquals('ilias.de:80', $uri->getAuthority());
565 $this->assertEquals('ilias.de', $uri->getHost());
566 $this->assertEquals('80', $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:1');
571 $this->assertEquals('g+it', $uri->getSchema());
572 $this->assertEquals('a:1', $uri->getAuthority());
573 $this->assertEquals('a', $uri->getHost());
574 $this->assertEquals(1, $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('a');
579 $this->assertEquals('g+it', $uri->getSchema());
580 $this->assertEquals('a', $uri->getAuthority());
581 $this->assertEquals('a', $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');
587 $this->assertEquals('g+it', $uri->getSchema());
588 $this->assertEquals('1.2.3.4', $uri->getAuthority());
589 $this->assertEquals('1.2.3.4', $uri->getHost());
590 $this->assertNull($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('1.2.3.4:5');
595 $this->assertEquals('g+it', $uri->getSchema());
596 $this->assertEquals('1.2.3.4:5', $uri->getAuthority());
597 $this->assertEquals('1.2.3.4', $uri->getHost());
598 $this->assertEquals(5, $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');
603 $this->assertEquals('g+it', $uri->getSchema());
604 $this->assertEquals('localhost1', $uri->getAuthority());
605 $this->assertEquals('localhost1', $uri->getHost());
606 $this->assertNull($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 $uri = $uri->withAuthority('localhost1:10');
611 $this->assertEquals('g+it', $uri->getSchema());
612 $this->assertEquals('localhost1:10', $uri->getAuthority());
613 $this->assertEquals('localhost1', $uri->getHost());
614 $this->assertEquals(10, $uri->getPort());
615 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
616 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
617 $this->assertEquals('fragment', $uri->getFragment());
618 }

◆ test_with_authority_invalid_1()

URITest::test_with_authority_invalid_1 ( )

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('-foo-.de');
626 }

◆ test_with_authority_invalid_2()

URITest::test_with_authority_invalid_2 ( )

Definition at line 629 of file URITest.php.

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

◆ test_with_authority_invalid_3()

URITest::test_with_authority_invalid_3 ( )

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_4()

URITest::test_with_authority_invalid_4 ( )

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: ');
651 }

◆ test_with_authority_invalid_5()

URITest::test_with_authority_invalid_5 ( )

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->withHost('ilias.de:aaa');
659 }

◆ test_with_authority_invalid_6()

URITest::test_with_authority_invalid_6 ( )

Definition at line 662 of file URITest.php.

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

◆ test_with_authority_invalid_7()

URITest::test_with_authority_invalid_7 ( )

Definition at line 671 of file URITest.php.

671 : void
672 {
673 $this->expectException(InvalidArgumentException::class);
674 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
675 $uri->withAuthority('foo.de"><script>alert');
676 }

◆ test_with_authority_invalid_8()

URITest::test_with_authority_invalid_8 ( )

Definition at line 680 of file URITest.php.

680 : void
681 {
682 $this->expectException(InvalidArgumentException::class);
683 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
684 $uri->withAuthority(' :80');
685 }

◆ test_with_fragment()

URITest::test_with_fragment (   $uri)

Definition at line 784 of file URITest.php.

784 : void
785 {
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('fragment', $uri->getFragment());
793 $uri = $uri->withFragment('someFragment');
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->assertEquals('someFragment', $uri->getFragment());
801 $uri = $uri->withFragment();
802 $this->assertEquals('g+it', $uri->getSchema());
803 $this->assertEquals('github.com:8080', $uri->getAuthority());
804 $this->assertEquals('github.com', $uri->getHost());
805 $this->assertEquals('8080', $uri->getPort());
806 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
807 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
808 $this->assertNull($uri->getFragment());
809 }

◆ test_with_fragment_invalid_1()

URITest::test_with_fragment_invalid_1 ( )

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('aaa[]');
817 }

◆ test_with_fragment_invalid_2()

URITest::test_with_fragment_invalid_2 ( )

Definition at line 820 of file URITest.php.

820 : void
821 {
822 $this->expectException(InvalidArgumentException::class);
823 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
824 $uri->withFragment('script>');
825 }

◆ test_with_host()

URITest::test_with_host (   $uri)

Definition at line 502 of file URITest.php.

502 : void
503 {
504 $this->assertEquals('g+it', $uri->getSchema());
505 $this->assertEquals('github.com:8080', $uri->getAuthority());
506 $this->assertEquals('github.com', $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 $uri = $uri->withHost('ilias.de');
512 $this->assertEquals('g+it', $uri->getSchema());
513 $this->assertEquals('ilias.de:8080', $uri->getAuthority());
514 $this->assertEquals('ilias.de', $uri->getHost());
515 $this->assertEquals('8080', $uri->getPort());
516 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
517 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
518 $this->assertEquals('fragment', $uri->getFragment());
519 }

◆ test_with_host_invalid_1()

URITest::test_with_host_invalid_1 ( )

Definition at line 522 of file URITest.php.

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

◆ test_with_host_invalid_3()

URITest::test_with_host_invalid_3 ( )

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('');
534 }

◆ test_with_host_invalid_4()

URITest::test_with_host_invalid_4 ( )

Definition at line 537 of file URITest.php.

537 : void
538 {
539 $this->expectException(InvalidArgumentException::class);
540 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
541 $uri->withHost('ilias.de"><script');
542 }

◆ test_with_path()

URITest::test_with_path (   $uri)

Definition at line 688 of file URITest.php.

688 : void
689 {
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('someaccount/somerepo/somerepo.git', $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('a/b');
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->assertEquals('a/b', $uri->getPath());
703 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
704 $this->assertEquals('fragment', $uri->getFragment());
705 $uri = $uri->withPath();
706 $this->assertEquals('g+it', $uri->getSchema());
707 $this->assertEquals('github.com:8080', $uri->getAuthority());
708 $this->assertEquals('github.com', $uri->getHost());
709 $this->assertEquals('8080', $uri->getPort());
710 $this->assertNull($uri->getPath());
711 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
712 $this->assertEquals('fragment', $uri->getFragment());
713 }

◆ test_with_path_invalid_1()

URITest::test_with_path_invalid_1 ( )

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('/<script>/a');
721 }

◆ test_with_path_invalid_2()

URITest::test_with_path_invalid_2 ( )

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_path_invalid_3()

URITest::test_with_path_invalid_3 ( )

Definition at line 732 of file URITest.php.

732 : void
733 {
734 $this->expectException(InvalidArgumentException::class);
735 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
736 $uri->withPath(':a/b');
737 }

◆ test_with_port()

URITest::test_with_port (   $uri)

Definition at line 457 of file URITest.php.

457 : void
458 {
459 $this->assertEquals('g+it', $uri->getSchema());
460 $this->assertEquals('github.com:8080', $uri->getAuthority());
461 $this->assertEquals('github.com', $uri->getHost());
462 $this->assertEquals('8080', $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(80);
467 $this->assertEquals('g+it', $uri->getSchema());
468 $this->assertEquals('github.com:80', $uri->getAuthority());
469 $this->assertEquals('github.com', $uri->getHost());
470 $this->assertEquals('80', $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 $uri = $uri->withPort();
475 $this->assertEquals('g+it', $uri->getSchema());
476 $this->assertEquals('github.com', $uri->getAuthority());
477 $this->assertEquals('github.com', $uri->getHost());
478 $this->assertNull($uri->getPort());
479 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
480 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
481 $this->assertEquals('fragment', $uri->getFragment());
482 }

◆ test_with_port_invalid_1()

URITest::test_with_port_invalid_1 ( )

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('a111');
491 }

◆ test_with_port_invalid_2()

URITest::test_with_port_invalid_2 ( )

Definition at line 494 of file URITest.php.

494 : void
495 {
496 $this->expectException(TypeError::class);
497 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
498 $uri->withPort('foo');
499 }

◆ test_with_query()

URITest::test_with_query (   $uri)

Definition at line 740 of file URITest.php.

740 : void
741 {
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_1=val_1&query_par_2=val_2', $uri->getQuery());
748 $this->assertEquals('fragment', $uri->getFragment());
749 $uri = $uri->withQuery('query_par_a1=val_a1');
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->assertEquals('query_par_a1=val_a1', $uri->getQuery());
756 $this->assertEquals('fragment', $uri->getFragment());
757 $uri = $uri->withQuery();
758 $this->assertEquals('g+it', $uri->getSchema());
759 $this->assertEquals('github.com:8080', $uri->getAuthority());
760 $this->assertEquals('github.com', $uri->getHost());
761 $this->assertEquals('8080', $uri->getPort());
762 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
763 $this->assertNull($uri->getQuery());
764 $this->assertEquals('fragment', $uri->getFragment());
765 }

◆ test_with_query_invalid_1()

URITest::test_with_query_invalid_1 ( )

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('<script>a');
773 }

◆ test_with_query_invalid_2()

URITest::test_with_query_invalid_2 ( )

Definition at line 776 of file URITest.php.

776 : void
777 {
778 $this->expectException(InvalidArgumentException::class);
779 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
780 $uri->withQuery('aa[]');
781 }

◆ test_with_schema()

URITest::test_with_schema (   $uri)

Definition at line 421 of file URITest.php.

421 : void
422 {
423 $this->assertEquals('g+it', $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 $uri = $uri->withSchema('http');
431 $this->assertEquals('http', $uri->getSchema());
432 $this->assertEquals('github.com:8080', $uri->getAuthority());
433 $this->assertEquals('github.com', $uri->getHost());
434 $this->assertEquals('8080', $uri->getPort());
435 $this->assertEquals('someaccount/somerepo/somerepo.git', $uri->getPath());
436 $this->assertEquals('query_par_1=val_1&query_par_2=val_2', $uri->getQuery());
437 $this->assertEquals('fragment', $uri->getFragment());
438 }

◆ test_with_schema_invalid_1()

URITest::test_with_schema_invalid_1 ( )

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('');
446 }

◆ test_with_schema_invalid_2()

URITest::test_with_schema_invalid_2 ( )

Definition at line 449 of file URITest.php.

449 : void
450 {
451 $this->expectException(InvalidArgumentException::class);
452 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
453 $uri->withSchema('1aa');
454 }

◆ test_wrong_authority_in_schema_1()

URITest::test_wrong_authority_in_schema_1 ( )

Definition at line 343 of file URITest.php.

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

◆ test_wrong_authority_in_schema_2()

URITest::test_wrong_authority_in_schema_2 ( )

Definition at line 350 of file URITest.php.

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

◆ test_wrong_char_in_schema()

URITest::test_wrong_char_in_schema ( )

Definition at line 336 of file URITest.php.

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

◆ testAppendParameter()

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

Definition at line 880 of file URITest.php.

880 : void
881 {
882 $params = [
883 'x' => 1, 'y' => 2,
884 'z' => 5
885 ];
886 $uri = $uri->withParameter('z', 5);
887 $this->assertEquals(
888 $params,
889 $uri->getParameters()
890 );
891 }
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

References $params.

◆ testGetParameter()

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

Definition at line 848 of file URITest.php.

848 : void
849 {
850 $k = array_keys(self::PARAMS)[0];
851 $this->assertEquals(
852 self::PARAMS[$k],
853 $uri->getParameter($k)
854 );
855 }

◆ testGetParameters()

URITest::testGetParameters ( )

Definition at line 836 of file URITest.php.

837 {
838 $url = self::URI_BASE . '?' . http_build_query(self::PARAMS);
839 $uri = new ILIAS\Data\URI($url);
840 $this->assertEquals(
841 self::PARAMS,
842 $uri->getParameters()
843 );
844 return $uri;
845 }
$url
Definition: shib_logout.php:68

References $url.

◆ testIPv6()

URITest::testIPv6 ( string  $host)

Definition at line 108 of file URITest.php.

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

◆ testSubstituteParameter()

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

Definition at line 870 of file URITest.php.

870 : void
871 {
872 $uri = $uri->withParameter('x', 5);
873 $this->assertEquals(
874 5,
875 $uri->getParameter('x')
876 );
877 }

◆ testToString()

URITest::testToString ( )

Definition at line 827 of file URITest.php.

827 : void
828 {
829 $uri = new ILIAS\Data\URI(self::URI_COMPLETE);
830 $this->assertEquals(
831 self::URI_COMPLETE,
832 $uri
833 );
834 }

◆ testWithArrayParameters()

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

Definition at line 894 of file URITest.php.

894 : void
895 {
896 $params = ['x' => 1, 'y' => [10, 11, 12]];
897 $uri = $uri->withParameters($params);
898 $this->assertEquals(
899 $params,
900 $uri->getParameters()
901 );
902 $this->assertEquals(
903 'git://github.com:8080/someaccount/somerepo/somerepo.git?x=1&y%5B0%5D=10&y%5B1%5D=11&y%5B2%5D=12',
904 $uri
905 );
906 $this->assertEquals(
907 $params['y'],
908 $uri->getParameter('y')
909 );
910 }

References $params.

◆ testWithOutParameters()

URITest::testWithOutParameters ( )

Definition at line 912 of file URITest.php.

912 : void
913 {
914 $uri = new ILIAS\Data\URI(self::URI_NO_QUERY_2);
915 $this->assertEquals(
916 [],
917 $uri->getParameters()
918 );
919
920 $this->assertNull($uri->getParameter('y'));
921
922 $this->assertEquals(
923 self::URI_NO_QUERY_2,
924 (string) $uri
925 );
926 }

◆ testWithParameters()

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

Definition at line 858 of file URITest.php.

859 {
860 $params = ['x' => 1, 'y' => 2];
861 $uri = $uri->withParameters($params);
862 $this->assertEquals(
863 $params,
864 $uri->getParameters()
865 );
866 return $uri;
867 }

References $params.

Field Documentation

◆ PARAMS

const URITest::PARAMS
private
Initial value:
= [
'par_1' => 'val_1',
'par_2' => 'val_2'
]

Definition at line 81 of file URITest.php.

◆ PARAMS_REALPCTENC

const URITest::PARAMS_REALPCTENC
private
Initial value:
= [
'par_lower' => 'val_+',
'par_upper' => 'val_รก'
]

Definition at line 69 of file URITest.php.

◆ PATH_REALPCTENC

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

Definition at line 68 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#fragA!\'*+()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 80 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 65 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_1

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

Definition at line 74 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 75 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_3

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

Definition at line 76 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_4

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

Definition at line 77 of file URITest.php.

◆ URI_HOST_ALPHADIG_START_5

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

Definition at line 78 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 61 of file URITest.php.

◆ URI_INVALID_CHARACTERS_IN_QUERY

const URITest::URI_INVALID_CHARACTERS_IN_QUERY = 'git://github.com?query_p=:&query_p2=ilias@ilias.de'
private

Definition at line 63 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 67 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: