X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhttp004.phpt;h=0e677f29aaf567ee528dd0f8befe29c727b5da75;hb=e5e47b8f7d1abbe420fac9f378684723518f5f4a;hp=7077cbdb533c578a742c58ab24293a808756a05c;hpb=f6bcdde50a4ae9f9d1049ac647413d47c5c45961;p=m6w6%2Fext-raphf 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)