X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-raphf;a=blobdiff_plain;f=tests%2Fhttp004.phpt;fp=tests%2Fhttp004.phpt;h=0e677f29aaf567ee528dd0f8befe29c727b5da75;hp=7077cbdb533c578a742c58ab24293a808756a05c;hb=2ccaf8a134e3705268767d1a1850430cebc3c9a1;hpb=8ea73a559e5d63e768294d7cd1c4655923fd3e5a diff --git a/tests/http004.phpt b/tests/http004.phpt index 7077cbd..0e677f2 100644 --- a/tests/http004.phpt +++ b/tests/http004.phpt @@ -16,8 +16,8 @@ echo "Test\n"; $h = (array) raphf\stat_persistent_handles(); var_dump(array_intersect_key($h, array_flip(preg_grep("/^http/", array_keys($h))))); -$c = new http\Client("curl", "php.net:80"); -$c2 = new http\Client("curl", "php.net:80"); +$c = new http\Client("curl", "PHP"); +$c2 = new http\Client("curl", "PHP"); do { $c->enqueue(new http\Client\Request("GET", "http://php.net")); $c2->enqueue(new http\Client\Request("GET", "http://php.net")); @@ -51,7 +51,7 @@ array(2) { array(2) { ["http\Client\Curl"]=> array(1) { - ["php.net:80"]=> + ["PHP"]=> array(2) { ["used"]=> int(2) @@ -61,7 +61,7 @@ array(2) { } ["http\Client\Curl\Request"]=> array(1) { - ["php.net:80"]=> + ["PHP:php.net:80"]=> array(2) { ["used"]=> int(6) @@ -73,7 +73,7 @@ array(2) { array(2) { ["http\Client\Curl"]=> array(1) { - ["php.net:80"]=> + ["PHP"]=> array(2) { ["used"]=> int(1) @@ -83,7 +83,7 @@ array(2) { } ["http\Client\Curl\Request"]=> array(1) { - ["php.net:80"]=> + ["PHP:php.net:80"]=> array(2) { ["used"]=> int(3) @@ -95,7 +95,7 @@ array(2) { array(2) { ["http\Client\Curl"]=> array(1) { - ["php.net:80"]=> + ["PHP"]=> array(2) { ["used"]=> int(1) @@ -105,7 +105,7 @@ array(2) { } ["http\Client\Curl\Request"]=> array(1) { - ["php.net:80"]=> + ["PHP:php.net:80"]=> array(2) { ["used"]=> int(3)