--FILE--
<?php
echo "-TEST\n";
+$post = new HttpRequest('http://dev.iworks.at/.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),
new HttpRequest('http://at.php.net/', HTTP_METH_HEAD),
new HttpRequest('http://de.php.net/', HTTP_METH_HEAD),
new HttpRequest('http://ch.php.net/', HTTP_METH_HEAD),
- $post = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST)
+ $post
);
-$post->addPostFields(array('a'=>1,'b'=>2)) ;
$pool->send();
foreach ($pool as $req) {
set_time_limit(0);
ini_set('error_reporting', E_ALL);
+ini_set('html_errors', 0);
class Pool extends HttpRequestPool
{
--TEST--
-crc32 etag
+crc32 etag (may fail because PHPs crc32 is actually crc32b)
--SKIPIF--
<?php
include 'skip.inc';
--TEST--
-ob crc32 etag
+ob crc32 etag (may fail because PHPs crc32 is actually crc32b)
--SKIPIF--
<?php
include 'skip.inc';
--TEST--
-crc32 etag
+crc32 etag (may fail because PHPs crc32 is actually crc32b)
--SKIPIF--
<?php
include 'skip.inc';
--TEST--
-ob crc32 etag
+ob crc32 etag (may fail because PHPs crc32 is actually crc32b)
--SKIPIF--
<?php
include 'skip.inc';
echo "-TEST\n";
error_reporting(E_ALL);
+ini_set('html_errors', 0);
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Framework/TestCase.php';
<?php
echo "-TEST\n";
+error_reporting(E_ALL);
+ini_set('html_errors', 0);
+
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Framework/TestCase.php';
require_once 'PHPUnit2/TextUI/ResultPrinter.php';
--EXPECTF--
%sTEST
+
Time: 0
OK (53 tests)
<?php
echo "-TEST\n";
+error_reporting(E_ALL);
+ini_set('html_errors', 0);
+
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Framework/TestCase.php';
require_once 'PHPUnit2/TextUI/ResultPrinter.php';
--EXPECTF--
%sTEST
+
Time: 0
OK (16 tests)
<?php
echo "-TEST\n";
+error_reporting(E_ALL);
+ini_set('html_errors', 0);
+
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Framework/TestCase.php';
require_once 'PHPUnit2/TextUI/ResultPrinter.php';
--EXPECTF--
%sTEST
+
Time: 0
OK (33 tests)
echo "-TEST\n";
error_reporting(E_ALL);
+ini_set('html_errors', 0);
require_once 'PHPUnit2/Framework/TestSuite.php';
require_once 'PHPUnit2/Framework/TestCase.php';