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