@@ -13,21 +13,21 @@ require __DIR__ . '/../bootstrap.php';
1313
1414$ url = new Url ('http://username%3A:password%3A@hostn%61me:60/p%61th/script.php?%61rg=value#%61nchor ' );
1515
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 );
1717Assert::same ( 'http ' , $ url ->scheme );
1818Assert::same ( 'username: ' , $ url ->user );
1919Assert::same ( 'password: ' , $ url ->password );
2020Assert::same ( 'hostname ' , $ url ->host );
2121Assert::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 );
2424Assert::same ( 'arg=value ' , $ url ->query );
2525Assert::same ( 'anchor ' , $ url ->fragment );
2626Assert::same ( 'hostname:60 ' , $ url ->authority );
2727Assert::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 );
3030Assert::same ( 'script.php?arg=value#anchor ' , $ url ->relativeUrl );
3131
3232$ 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