let DEV_2 be trunk
[m6w6/ext-http] / tests / HttpRequestPool_001.phpt
diff --git a/tests/HttpRequestPool_001.phpt b/tests/HttpRequestPool_001.phpt
deleted file mode 100644 (file)
index c0d9c94..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
---TEST--
-HttpRequestPool
---SKIPIF--
-<?php
-include 'skip.inc';
-checkmin("5.2.5");
-checkcls('HttpRequestPool');
-checkurl('www.php.net');
-checkurl('dev.iworks.at');
-?>
---FILE--
-<?php
-echo "-TEST\n";
-$post = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HTTP_METH_POST);
-$post->addPostFields(array('a'=>1,'b'=>2)) ;
-
-$pool = new HttpRequestPool(
-    new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
-    $post
-);
-
-$pool->send();
-
-foreach ($pool as $req) {
-    echo $req->getUrl(), '=',
-        $req->getResponseCode(), ':',
-        $req->getResponseMessage()->getResponseCode(), "\n";
-}
-
-foreach ($pool as $req) {
-       try {
-               $pool->attach(new HttpRequest('http://foo.bar'));
-       } catch (HttpRequestPoolException $x) {
-               echo ".\n";
-       }
-}
-
-foreach ($pool as $req) {
-       $pool->detach($req);
-}
-
-echo "Done\n";
-?>
-
---EXPECTF--
-%aTEST
-http://www.php.net/=200:200
-http://dev.iworks.at/ext-http/.print_request.php=200:200
-.
-.
-Done