2 PHPUnit HttpRequestPool
6 checkcls('HttpRequestPool');
7 skipif(!@include 'PHPUnit2/Framework/TestCase.php', 'need PHPUnit2');
13 error_reporting(E_ALL);
14 ini_set('html_errors', 0);
16 require_once 'PHPUnit2/Framework/TestSuite.php';
17 require_once 'PHPUnit2/Framework/TestCase.php';
18 require_once 'PHPUnit2/TextUI/ResultPrinter.php';
20 class HttpRequestPoolTest extends PHPUnit2_Framework_TestCase
22 function test___construct()
26 function test___destruct()
30 function test_attach()
34 function test_detach()
46 function test_socketPerform()
50 function test_socketSelect()
58 function test_current()
70 function test_rewind()
78 function test_getAttachedRequests()
82 function test_getFinishedRequests()
89 $s = new PHPUnit2_Framework_TestSuite('HttpRequestPoolTest');
90 $p = new PHPUnit2_TextUI_ResultPrinter();
91 $p->printResult($s->run(), 0);