Skip to content

Commit 48f1824

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

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

ext/uri/tests/004.phpt

Lines changed: 20 additions & 7 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 {
@@ -29,7 +24,25 @@ var_dump(Uri\WhatWg\Url::parse("http://RuPaul's Drag Race All Stars 7 Winners Ca
2924

3025
?>
3126
--EXPECTF--
32-
object(Uri\Rfc3986\Uri)#1 (8) {
27+
object(Uri\Rfc3986\Uri)#%d (%d) {
28+
["scheme"]=>
29+
NULL
30+
["username"]=>
31+
NULL
32+
["password"]=>
33+
NULL
34+
["host"]=>
35+
NULL
36+
["port"]=>
37+
NULL
38+
["path"]=>
39+
string(0) ""
40+
["query"]=>
41+
NULL
42+
["fragment"]=>
43+
NULL
44+
}
45+
object(Uri\Rfc3986\Uri)#%d (%d) {
3346
["scheme"]=>
3447
NULL
3548
["username"]=>

0 commit comments

Comments
 (0)