Skip to content

Commit 559529c

Browse files
committed
uri: Improve ext/uri/tests/004.phpt for empty URIs
1 parent bf7fee2 commit 559529c

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

ext/uri/tests/004.phpt

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ uri
55
--FILE--
66
<?php
77

8-
try {
9-
new Uri\Rfc3986\Uri("");
10-
} catch (Uri\InvalidUriException $e) {
11-
echo $e->getMessage() . "\n";
12-
}
13-
8+
var_dump(new Uri\Rfc3986\Uri(""));
149
var_dump(Uri\Rfc3986\Uri::parse(""));
1510

1611
try {
@@ -47,6 +42,24 @@ object(Uri\Rfc3986\Uri)#1 (8) {
4742
["fragment"]=>
4843
NULL
4944
}
45+
object(Uri\Rfc3986\Uri)#1 (8) {
46+
["scheme"]=>
47+
NULL
48+
["username"]=>
49+
NULL
50+
["password"]=>
51+
NULL
52+
["host"]=>
53+
NULL
54+
["port"]=>
55+
NULL
56+
["path"]=>
57+
string(0) ""
58+
["query"]=>
59+
NULL
60+
["fragment"]=>
61+
NULL
62+
}
5063
The specified URI is malformed (MissingSchemeNonRelativeUrl)
5164
NULL
5265
object(Uri\Rfc3986\Uri)#%d (%d) {

0 commit comments

Comments
 (0)