‪TYPO3CMS  9.5
UriTest.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
19 
25 class ‪UriTest extends UnitTestCase
26 {
31  {
32  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
33  $this->assertEquals('https', $uri->getScheme());
34  $this->assertEquals('user:pass', $uri->getUserInfo());
35  $this->assertEquals('local.example.com', $uri->getHost());
36  $this->assertEquals(3001, $uri->getPort());
37  $this->assertEquals('user:pass@local.example.com:3001', $uri->getAuthority());
38  $this->assertEquals('/foo', $uri->getPath());
39  $this->assertEquals('bar=baz', $uri->getQuery());
40  $this->assertEquals('quz', $uri->getFragment());
41  }
42 
46  public function ‪canSerializeToString()
47  {
48  $url = 'https://user:pass@local.example.com:3001/foo?bar=baz#quz';
49  $uri = new ‪Uri($url);
50  $this->assertEquals($url, (string)$uri);
51  }
52 
57  {
58  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
59  $new = $uri->withScheme('http');
60  $this->assertNotSame($uri, $new);
61  $this->assertEquals('http', $new->getScheme());
62  $this->assertEquals('http://user:pass@local.example.com:3001/foo?bar=baz#quz', (string)$new);
63  }
64 
69  {
70  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
71  $new = $uri->withUserInfo('matthew');
72  $this->assertNotSame($uri, $new);
73  $this->assertEquals('matthew', $new->getUserInfo());
74  $this->assertEquals('https://matthew@local.example.com:3001/foo?bar=baz#quz', (string)$new);
75  }
76 
81  {
82  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
83  $new = $uri->withUserInfo('matthew', 'zf2');
84  $this->assertNotSame($uri, $new);
85  $this->assertEquals('matthew:zf2', $new->getUserInfo());
86  $this->assertEquals('https://matthew:zf2@local.example.com:3001/foo?bar=baz#quz', (string)$new);
87  }
88 
93  {
94  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
95  $new = $uri->withHost('framework.zend.com');
96  $this->assertNotSame($uri, $new);
97  $this->assertEquals('framework.zend.com', $new->getHost());
98  $this->assertEquals('https://user:pass@framework.zend.com:3001/foo?bar=baz#quz', (string)$new);
99  }
100 
105  {
106  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
107  $new = $uri->withPort(null);
108  $this->assertEquals(
109  'https://user:pass@local.example.com/foo?bar=baz#quz',
110  (string)$new
111  );
112  }
116  public function ‪validPortsDataProvider()
117  {
118  return [
119  'int' => [3000],
120  'string' => ['3000']
121  ];
122  }
123 
129  {
130  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
131  $new = $uri->withPort($port);
132  $this->assertNotSame($uri, $new);
133  $this->assertEquals($port, $new->getPort());
134  $this->assertEquals(
135  sprintf('https://user:pass@local.example.com:%d/foo?bar=baz#quz', $port),
136  (string)$new
137  );
138  }
139 
144  {
145  return [
146  'false' => [false],
147  'string' => ['string'],
148  'array' => [[3000]],
149  'object' => [(object)[3000]],
150  ];
151  }
152 
158  {
159  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
160  $this->expectException(\InvalidArgumentException::class);
161  $this->expectExceptionCode(1436717324);
162  $uri->withPort($port);
163  }
164 
169  {
170  return [
171  'zero' => [0],
172  'too-small' => [-1],
173  'too-big' => [65536],
174  ];
175  }
176 
185  {
186  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
187  $new = $uri->withPort(true);
188  $this->assertNotSame($uri, $new);
189  $this->assertEquals(1, $new->getPort());
190  }
191 
197  {
198  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
199  $this->expectException(\InvalidArgumentException::class);
200  $this->expectExceptionCode(1436717326);
201  $uri->withPort($port);
202  }
203 
208  {
209  $subject = new ‪Uri('http://www.example.com:80');
210  $this->assertEquals('http://www.example.com', (string)$subject);
211  }
212 
217  {
218  $subject = new ‪Uri('www.example.com:80');
219  $this->assertEquals('//www.example.com:80', (string)$subject);
220  }
221 
226  {
227  $subject = new ‪Uri('www.example.com');
228  $this->assertEquals('/www.example.com', (string)$subject);
229  }
230 
235  {
236  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
237  $new = $uri->withPath('/bar/baz');
238  $this->assertNotSame($uri, $new);
239  $this->assertEquals('/bar/baz', $new->getPath());
240  $this->assertEquals('https://user:pass@local.example.com:3001/bar/baz?bar=baz#quz', (string)$new);
241  }
242 
246  public function ‪invalidPathsDataProvider()
247  {
248  return [
249  'null' => [null],
250  'true' => [true],
251  'false' => [false],
252  'array' => [['/bar/baz']],
253  'object' => [(object)['/bar/baz']],
254  ];
255  }
256 
262  {
263  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
264  $this->expectException(\InvalidArgumentException::class);
265  $this->expectExceptionCode(1436717328);
266  $uri->withPath($path);
267  }
268 
273  {
274  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
275  $this->expectException(\InvalidArgumentException::class);
276  $this->expectExceptionCode(1436717330);
277  $uri->withPath('/bar/baz?bat=quz');
278  }
279 
284  {
285  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
286  $this->expectException(\InvalidArgumentException::class);
287  $this->expectExceptionCode(1436717332);
288  $uri->withPath('/bar/baz#bat');
289  }
290 
295  {
296  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
297  $new = $uri->withQuery('baz=bat');
298  $this->assertNotSame($uri, $new);
299  $this->assertEquals('baz=bat', $new->getQuery());
300  $this->assertEquals('https://user:pass@local.example.com:3001/foo?baz=bat#quz', (string)$new);
301  }
302 
307  {
308  return [
309  'null' => [null],
310  'true' => [true],
311  'false' => [false],
312  'array' => [['baz=bat']],
313  'object' => [(object)['baz=bat']],
314  ];
315  }
316 
322  {
323  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
324  $this->expectException(\InvalidArgumentException::class);
325  $this->expectExceptionCode(1436717334);
326  $uri->withQuery($query);
327  }
328 
333  {
334  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
335  $this->expectException(\InvalidArgumentException::class);
336  $this->expectExceptionCode(1436717336);
337  $uri->withQuery('baz=bat#quz');
338  }
339 
344  {
345  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
346  $new = $uri->withFragment('qat');
347  $this->assertNotSame($uri, $new);
348  $this->assertEquals('qat', $new->getFragment());
349  $this->assertEquals('https://user:pass@local.example.com:3001/foo?bar=baz#qat', (string)$new);
350  }
351 
356  {
357  return [
358  'host-only' => ['http://foo.com/bar', 'foo.com'],
359  'host-port' => ['http://foo.com:3000/bar', 'foo.com:3000'],
360  'user-host' => ['http://me@foo.com/bar', 'me@foo.com'],
361  'user-host-port' => ['http://me@foo.com:3000/bar', 'me@foo.com:3000'],
362  ];
363  }
364 
369  public function ‪getAuthorityReturnsExpectedValues($url, $expected)
370  {
371  $uri = new ‪Uri($url);
372  $this->assertEquals($expected, $uri->getAuthority());
373  }
374 
378  public function ‪canEmitOriginFormUrl()
379  {
380  $url = '/foo/bar?baz=bat';
381  $uri = new ‪Uri($url);
382  $this->assertEquals($url, (string)$uri);
383  }
384 
389  {
390  $uri = new ‪Uri('http://example.com/foo');
391  $new = $uri->withPath('');
392  $this->assertEquals('', $new->getPath());
393  }
394 
399  {
400  $uri = new ‪Uri('http://example.com');
401  $this->assertEquals('http://example.com', (string)$uri);
402  }
403 
408  {
409  $uri = new ‪Uri('?foo=bar');
410  $this->assertEquals('', $uri->getPath());
411  }
412 
417  {
418  $uri = new ‪Uri('?foo=bar');
419  $this->assertEquals('?foo=bar', (string)$uri);
420  }
421 
426  {
427  return [
428  'null' => [null],
429  'true' => [true],
430  'false' => [false],
431  'int' => [1],
432  'float' => [1.1],
433  'array' => [['http://example.com/']],
434  'object' => [(object)['uri' => 'http://example.com/']],
435  ];
436  }
437 
442  {
443  $this->expectException(\InvalidArgumentException::class);
444  new ‪Uri($uri);
445  }
446 
451  {
452  $this->expectException(\InvalidArgumentException::class);
453  new ‪Uri('http:///www.php-fig.org/');
454  }
455 
460  {
461  $uri = new ‪Uri('http://example.com');
462  $new = $uri->withScheme('https://');
463  $this->assertEquals('https', $new->getScheme());
464  }
465 
470  {
471  return [
472  'mailto' => ['mailto'],
473  'ftp' => ['ftp'],
474  'telnet' => ['telnet'],
475  'ssh' => ['ssh'],
476  'git' => ['git'],
477  ];
478  }
479 
485  {
486  $this->expectException(\InvalidArgumentException::class);
487  $this->expectExceptionCode(1436717338);
488  new ‪Uri($scheme . '://example.com');
489  }
490 
496  {
497  $uri = new ‪Uri('http://example.com');
498  $this->expectException(\InvalidArgumentException::class);
499  $this->expectExceptionCode(1436717338);
500  $uri->withScheme($scheme);
501  }
502 
507  {
508  $uri = new ‪Uri('http://example.com');
509  $new = $uri->withPath('foo/bar');
510  $this->assertEquals('foo/bar', $new->getPath());
511  }
512 
517  {
518  $uri = new ‪Uri('https://user:pass@local.example.com:3001/foo?bar=baz#quz');
519  $new = $uri->withScheme('');
520  $this->assertNotSame($uri, $new);
521  $this->assertNotSame((string)$uri, (string)$new);
522  $this->assertEquals('', $new->getScheme());
523  $this->assertEquals('//user:pass@local.example.com:3001/foo?bar=baz#quz', (string)$new);
524  }
525 
530  {
531  $uri = new ‪Uri('http://example.com');
532  $new = $uri->withPath('foo/bar');
533  $this->assertEquals('http://example.com/foo/bar', $new->__toString());
534  }
535 
540  {
541  $uri = new ‪Uri('http://example.com');
542  $new = $uri->withQuery('?foo=bar');
543  $this->assertEquals('foo=bar', $new->getQuery());
544  }
545 
550  {
551  $uri = new ‪Uri('http://example.com');
552  $new = $uri->withFragment('#/foo/bar');
553  $this->assertEquals('/foo/bar', $new->getFragment());
554  }
555 
560  {
561  return [
562  'http' => ['http', 80],
563  'https' => ['https', 443],
564  ];
565  }
566 
572  {
573  $uri = (new ‪Uri())
574  ->withHost('example.com')
575  ->withScheme($scheme)
576  ->withPort($port);
577  $this->assertEquals('example.com', $uri->getAuthority());
578  }
579 
583  public function ‪getPathIsProperlyEncoded()
584  {
585  $uri = (new ‪Uri())->withPath('/foo^bar');
586  $expected = '/foo%5Ebar';
587  $this->assertEquals($expected, $uri->getPath());
588  }
589 
594  {
595  $uri = (new ‪Uri())->withPath('/foo%5Ebar');
596  $expected = '/foo%5Ebar';
597  $this->assertEquals($expected, $uri->getPath());
598  }
599 
604  {
605  return [
606  'key-only' => ['k^ey', 'k%5Eey'],
607  'key-value' => ['k^ey=valu`', 'k%5Eey=valu%60'],
608  'array-key-only' => ['key[]', 'key%5B%5D'],
609  'array-key-value' => ['key[]=valu`', 'key%5B%5D=valu%60'],
610  'complex' => ['k^ey&key[]=valu`&f<>=`bar', 'k%5Eey&key%5B%5D=valu%60&f%3C%3E=%60bar'],
611  ];
612  }
613 
618  public function ‪getQueryIsProperlyEncoded($query, $expected)
619  {
620  $uri = (new ‪Uri())->withQuery($query);
621  $this->assertEquals($expected, $uri->getQuery());
622  }
623 
628  public function ‪getQueryIsNotDoubleEncoded($query, $expected)
629  {
630  $uri = (new ‪Uri())->withQuery($expected);
631  $this->assertEquals($expected, $uri->getQuery());
632  }
633 
638  {
639  $uri = (new ‪Uri())->withFragment('/p^th?key^=`bar#b@z');
640  $expected = '/p%5Eth?key%5E=%60bar%23b@z';
641  $this->assertEquals($expected, $uri->getFragment());
642  }
643 
648  {
649  $expected = '/p%5Eth?key%5E=%60bar%23b@z';
650  $uri = (new ‪Uri())->withFragment($expected);
651  $this->assertEquals($expected, $uri->getFragment());
652  }
653 }
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\standardSchemePortCombinationsDataProvider
‪array standardSchemePortCombinationsDataProvider()
Definition: UriTest.php:559
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath
‪settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath()
Definition: UriTest.php:388
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidSchemesDataProvider
‪array invalidSchemesDataProvider()
Definition: UriTest.php:469
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\canSerializeToString
‪canSerializeToString()
Definition: UriTest.php:46
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withHostReturnsNewInstanceWithProvidedHost
‪withHostReturnsNewInstanceWithProvidedHost()
Definition: UriTest.php:92
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathRaisesExceptionForInvalidPathsWithQuery
‪withPathRaisesExceptionForInvalidPathsWithQuery()
Definition: UriTest.php:272
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPortAcceptsBooleanTrueAsPortOne
‪withPortAcceptsBooleanTrueAsPortOne()
Definition: UriTest.php:184
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withQueryRaisesExceptionForInvalidQueryStringsByType
‪withQueryRaisesExceptionForInvalidQueryStringsByType($query)
Definition: UriTest.php:321
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withFragmentStripsFragmentPrefixIfPresent
‪withFragmentStripsFragmentPrefixIfPresent()
Definition: UriTest.php:549
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathIsNotPrefixedWithSlashIfSetWithoutOne
‪withPathIsNotPrefixedWithSlashIfSetWithoutOne()
Definition: UriTest.php:506
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getFragmentIsProperlyEncoded
‪getFragmentIsProperlyEncoded()
Definition: UriTest.php:637
‪TYPO3\CMS\Core\Tests\Unit\Http
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\noPortAndNoSchemeDoesNotRenderPort
‪noPortAndNoSchemeDoesNotRenderPort()
Definition: UriTest.php:225
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withSchemeUsingUnsupportedSchemeRaisesAnException
‪withSchemeUsingUnsupportedSchemeRaisesAnException($scheme)
Definition: UriTest.php:495
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\canEmitOriginFormUrl
‪canEmitOriginFormUrl()
Definition: UriTest.php:378
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPortRaisesExceptionForInvalidPortsByType
‪withPortRaisesExceptionForInvalidPortsByType($port)
Definition: UriTest.php:157
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathReturnsNewInstanceWithProvidedPath
‪withPathReturnsNewInstanceWithProvidedPath()
Definition: UriTest.php:234
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidPortsDataProviderType
‪array invalidPortsDataProviderType()
Definition: UriTest.php:143
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getQueryIsProperlyEncoded
‪getQueryIsProperlyEncoded($query, $expected)
Definition: UriTest.php:618
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\authorityInfoDataProvider
‪array authorityInfoDataProvider()
Definition: UriTest.php:355
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\standardPortAndSchemeDoesNotRenderPort
‪standardPortAndSchemeDoesNotRenderPort()
Definition: UriTest.php:207
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\constructorRaisesExceptionForSeriouslyMalformedURI
‪constructorRaisesExceptionForSeriouslyMalformedURI()
Definition: UriTest.php:450
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\constructorRaisesExceptionForNonStringURI
‪constructorRaisesExceptionForNonStringURI($uri)
Definition: UriTest.php:441
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getPathIsProperlyEncoded
‪getPathIsProperlyEncoded()
Definition: UriTest.php:583
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath
‪stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath()
Definition: UriTest.php:416
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withSchemeReturnsNewInstanceWithNewScheme
‪withSchemeReturnsNewInstanceWithNewScheme()
Definition: UriTest.php:56
‪TYPO3\CMS\Core\Http\Uri
Definition: Uri.php:27
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\queryStringsForEncodingDataProvider
‪array queryStringsForEncodingDataProvider()
Definition: UriTest.php:603
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withSchemeStripsOffDelimiter
‪withSchemeStripsOffDelimiter()
Definition: UriTest.php:459
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getAuthorityReturnsExpectedValues
‪getAuthorityReturnsExpectedValues($url, $expected)
Definition: UriTest.php:369
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathRaisesExceptionForInvalidPaths
‪withPathRaisesExceptionForInvalidPaths($path)
Definition: UriTest.php:261
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getQueryIsNotDoubleEncoded
‪getQueryIsNotDoubleEncoded($query, $expected)
Definition: UriTest.php:628
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidPortsDataProviderRange
‪array invalidPortsDataProviderRange()
Definition: UriTest.php:168
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString
‪withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString()
Definition: UriTest.php:529
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPathRaisesExceptionForInvalidPathsWithFragment
‪withPathRaisesExceptionForInvalidPathsWithFragment()
Definition: UriTest.php:283
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getPathOnOriginFormRemainsAnEmptyPath
‪getPathOnOriginFormRemainsAnEmptyPath()
Definition: UriTest.php:407
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidPathsDataProvider
‪array invalidPathsDataProvider()
Definition: UriTest.php:246
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\standardPortAndNoSchemeDoesRenderPort
‪standardPortAndNoSchemeDoesRenderPort()
Definition: UriTest.php:216
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getAuthorityOmitsPortForStandardSchemePortCombinations
‪getAuthorityOmitsPortForStandardSchemePortCombinations($scheme, $port)
Definition: UriTest.php:571
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\validPortsDataProvider
‪array validPortsDataProvider()
Definition: UriTest.php:116
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\constructorSetsAllProperties
‪constructorSetsAllProperties()
Definition: UriTest.php:30
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withQueryRaisesExceptionForInvalidQueryStringsByFragment
‪withQueryRaisesExceptionForInvalidQueryStringsByFragment()
Definition: UriTest.php:332
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getPathDoesNotBecomeDoubleEncoded
‪getPathDoesNotBecomeDoubleEncoded()
Definition: UriTest.php:593
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withEmptySchemeReturnsNewInstanceWithAbsoluteUri
‪withEmptySchemeReturnsNewInstanceWithAbsoluteUri()
Definition: UriTest.php:516
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\getFragmentIsNotDoubleEncoded
‪getFragmentIsNotDoubleEncoded()
Definition: UriTest.php:647
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withUserInfoReturnsNewInstanceWithProvidedUserAndPassword
‪withUserInfoReturnsNewInstanceWithProvidedUserAndPassword()
Definition: UriTest.php:80
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath
‪stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath()
Definition: UriTest.php:398
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPortRaisesExceptionForInvalidPortsByRange
‪withPortRaisesExceptionForInvalidPortsByRange($port)
Definition: UriTest.php:196
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidQueryStringsDataProvider
‪array invalidQueryStringsDataProvider()
Definition: UriTest.php:306
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withQueryReturnsNewInstanceWithProvidedQuery
‪withQueryReturnsNewInstanceWithProvidedQuery()
Definition: UriTest.php:294
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPortAndNullValueReturnsInstanceWithProvidedPort
‪withPortAndNullValueReturnsInstanceWithProvidedPort()
Definition: UriTest.php:104
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\invalidConstructorUrisDataProvider
‪array invalidConstructorUrisDataProvider()
Definition: UriTest.php:425
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withQueryStripsQueryPrefixIfPresent
‪withQueryStripsQueryPrefixIfPresent()
Definition: UriTest.php:539
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withUserInfoReturnsNewInstanceWithProvidedUser
‪withUserInfoReturnsNewInstanceWithProvidedUser()
Definition: UriTest.php:68
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withPortReturnsNewInstanceWithProvidedPort
‪withPortReturnsNewInstanceWithProvidedPort($port)
Definition: UriTest.php:128
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\withFragmentReturnsNewInstanceWithProvidedFragment
‪withFragmentReturnsNewInstanceWithProvidedFragment()
Definition: UriTest.php:343
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest
Definition: UriTest.php:26
‪TYPO3\CMS\Core\Tests\Unit\Http\UriTest\constructWithUnsupportedSchemeRaisesAnException
‪constructWithUnsupportedSchemeRaisesAnException($scheme)
Definition: UriTest.php:484