let DEV_2 be trunk
[m6w6/ext-http] / tests / HttpRequestPool_002.phpt
diff --git a/tests/HttpRequestPool_002.phpt b/tests/HttpRequestPool_002.phpt
deleted file mode 100644 (file)
index 94fd2c5..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
---TEST--
-extending HttpRequestPool
---SKIPIF--
-<?php
-include 'skip.inc';
-checkcls('HttpRequestPool');
-checkurl('www.php.net');
-?>
---FILE--
-<?php
-echo "-TEST\n";
-
-class MyPool extends HttpRequestPool
-{
-       public function send()
-       {
-               while ($this->socketPerform()) {
-                       if (!$this->socketSelect()) {
-                               throw new HttpSocketException;
-                       }
-               }
-       }
-       
-       protected final function socketPerform()
-       {
-               $result = parent::socketPerform();
-               
-               echo ".";
-               foreach ($this->getFinishedRequests() as $r) {
-                       echo "=", $r->getResponseCode(), "=";
-                       $this->detach($r);
-               }
-               
-               return $result;
-       }
-}
-
-$pool = new MyPool(
-    new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
-    new HttpRequest('http://www.php.net/', HTTP_METH_HEAD),
-    new HttpRequest('http://www.php.net/', HTTP_METH_HEAD)
-);
-
-$pool->send();
-
-echo "\nDone\n";
-?>
---EXPECTREGEX--
-.+TEST
-\.*=200=\.*=200=\.*=200=
-Done