Refactored and fixed test suite to run async tests

This commit is contained in:
Jörn Zaefferer 2006-09-30 14:34:49 +00:00
parent cc5625067a
commit 308d771dd1
6 changed files with 43 additions and 5 deletions

22
build/test/data/name.php Normal file
View file

@ -0,0 +1,22 @@
<?php
$wait = $_REQUEST['wait'];
if($wait) {
sleep($wait);
}
$xml = $_REQUEST['xml'];
if($xml) {
header("Content-type: text/xml");
eval("\$result = $xml;");
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
die();
}
$name = $_REQUEST['name'];
if($name == 'foo') {
echo "bar";
die();
} else if($name == 'peter') {
echo "pan";
die();
}
echo "ERROR";
?>