X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequestPool_003.phpt;h=b08a706489e06e7561a68ba70ffc32acb5603518;hp=c89efa44f1d06d49e432f2548af0b97cb4587215;hb=ec0bb29f312b0f825a44c059fa6a8e2d1cd708bb;hpb=f0d2eafadc9967abd53546c6b7f395ce095255e9 diff --git a/tests/HttpRequestPool_003.phpt b/tests/HttpRequestPool_003.phpt index c89efa4..b08a706 100644 --- a/tests/HttpRequestPool_003.phpt +++ b/tests/HttpRequestPool_003.phpt @@ -2,7 +2,7 @@ HttpRequestPool chain --SKIPIF-- @@ -13,6 +13,7 @@ echo "-TEST\n"; set_time_limit(0); ini_set('error_reporting', E_ALL); +ini_set('html_errors', 0); class Pool extends HttpRequestPool { @@ -48,8 +49,9 @@ class Pool extends HttpRequestPool HttpRequest::METH_GET, array( 'redirect' => 5, - 'timeout' => 50, - 'connecttimeout' => 10, + 'compress' => GZIP, + 'timeout' => TOUT, + 'connecttimeout' => TOUT, 'lastmodified' => is_file($file)?filemtime($file):0 ) ) @@ -93,10 +95,10 @@ class Pool extends HttpRequestPool $url, HttpRequest::METH_GET, array( - 'redirect' => 3, - 'timeout' => 25, - 'compress' => true, - 'connecttimeout' => 10, + 'redirect' => 5, + 'compress' => GZIP, + 'timeout' => TOUT, + 'connecttimeout' => TOUT, 'lastmodified' => is_file($file)?filemtime($file):0 ) ) @@ -107,17 +109,19 @@ class Pool extends HttpRequestPool } } +define('GZIP', true); +define('TOUT', 50); define('RMAX', 10); chdir(dirname(__FILE__)); $time = microtime(true); -new Pool(); +$pool = new Pool(); printf("Elapsed: %0.3fs\n", microtime(true)-$time); echo "Done\n"; ?> --EXPECTF-- -%sTEST +%aTEST %d %s %d %d %s %d %d %s %d