@@ -13,21 +13,21 @@ require __DIR__ . '/../bootstrap.php';
13
13
14
14
$ url = new Url ('http://username%3A:password%3A@hostn%61me:60/p%61th/script.php?%61rg=value#%61nchor ' );
15
15
16
- Assert::same ( 'http://hostname:60/path /script.php?arg=value#anchor ' , (string ) $ url );
16
+ Assert::same ( 'http://hostname:60/p%61th /script.php?arg=value#anchor ' , (string ) $ url );
17
17
Assert::same ( 'http ' , $ url ->scheme );
18
18
Assert::same ( 'username: ' , $ url ->user );
19
19
Assert::same ( 'password: ' , $ url ->password );
20
20
Assert::same ( 'hostname ' , $ url ->host );
21
21
Assert::same ( 60 , $ url ->port );
22
- Assert::same ( '/path /script.php ' , $ url ->path );
23
- Assert::same ( '/path / ' , $ url ->basePath );
22
+ Assert::same ( '/p%61th /script.php ' , $ url ->path );
23
+ Assert::same ( '/p%61th / ' , $ url ->basePath );
24
24
Assert::same ( 'arg=value ' , $ url ->query );
25
25
Assert::same ( 'anchor ' , $ url ->fragment );
26
26
Assert::same ( 'hostname:60 ' , $ url ->authority );
27
27
Assert::same ( 'http://hostname:60 ' , $ url ->hostUrl );
28
- Assert::same ( 'http://hostname:60/path /script.php?arg=value#anchor ' , $ url ->absoluteUrl );
29
- Assert::same ( 'http://hostname:60/path / ' , $ url ->baseUrl );
28
+ Assert::same ( 'http://hostname:60/p%61th /script.php?arg=value#anchor ' , $ url ->absoluteUrl );
29
+ Assert::same ( 'http://hostname:60/p%61th / ' , $ url ->baseUrl );
30
30
Assert::same ( 'script.php?arg=value#anchor ' , $ url ->relativeUrl );
31
31
32
32
$ url ->scheme = NULL ;
33
- Assert::same ( '//username%3A:password%3A@hostname:60/path /script.php?arg=value#anchor ' , $ url ->absoluteUrl );
33
+ Assert::same ( '//username%3A:password%3A@hostname:60/p%61th /script.php?arg=value#anchor ' , $ url ->absoluteUrl );
0 commit comments