X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-raphf;a=blobdiff_plain;f=tests%2Fhttp003.phpt;fp=tests%2Fhttp003.phpt;h=671b8d4ce9bd11f5bc8ca557f12688a142fcb0a6;hp=50dbb1c4a52fb5f84511c02ad0f1f6199ba2e274;hb=2ccaf8a134e3705268767d1a1850430cebc3c9a1;hpb=8ea73a559e5d63e768294d7cd1c4655923fd3e5a diff --git a/tests/http003.phpt b/tests/http003.phpt index 50dbb1c..671b8d4 100644 --- a/tests/http003.phpt +++ b/tests/http003.phpt @@ -13,7 +13,7 @@ if (!class_exists("http\\Client", false)) { enqueue(new http\Client\Request("GET", "http://php.net")); } while (count($c) < 3); @@ -23,7 +23,8 @@ unset($c); $h = (array) raphf\stat_persistent_handles(); var_dump(array_intersect_key($h, array_flip(preg_grep("/^http/", array_keys($h))))); -raphf\clean_persistent_handles(null, "php.net:80"); +raphf\clean_persistent_handles(null, "PHP"); +raphf\clean_persistent_handles(null, "PHP:php.net:80"); $h = (array) raphf\stat_persistent_handles(); var_dump(array_intersect_key($h, array_flip(preg_grep("/^http/", array_keys($h))))); @@ -35,7 +36,7 @@ Test array(2) { ["http\Client\Curl"]=> array(1) { - ["php.net:80"]=> + ["PHP"]=> array(2) { ["used"]=> int(0) @@ -45,7 +46,7 @@ array(2) { } ["http\Client\Curl\Request"]=> array(1) { - ["php.net:80"]=> + ["PHP:php.net:80"]=> array(2) { ["used"]=> int(0) @@ -57,7 +58,7 @@ array(2) { array(2) { ["http\Client\Curl"]=> array(1) { - ["php.net:80"]=> + ["PHP"]=> array(2) { ["used"]=> int(0) @@ -67,7 +68,7 @@ array(2) { } ["http\Client\Curl\Request"]=> array(1) { - ["php.net:80"]=> + ["PHP:php.net:80"]=> array(2) { ["used"]=> int(0)