X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Ftestsuite.php;h=5784be4dddba9fff6093d57cdd6501a60acff991;hb=2df63e76b84037b28b9a534d9df06c75537caefb;hp=08b7d9134cf40e6a5a3e4e27f818a7c4674afc41;hpb=26ac91603dc5dab166667622bbc5e7de6d585f3c;p=plcapi.git diff --git a/test/testsuite.php b/test/testsuite.php index 08b7d91..5784be4 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -14,6 +14,7 @@ if ((int)ini_get('max_execution_time') < 180) ini_set('max_execution_time', 180); + ini_set('max_execution_time', 180); $suite = new PHPUnit_TestSuite(); @@ -51,14 +52,14 @@ function setUp() { global $DEBUG, $LOCALSERVER, $URI; - $server = split(':', $LOCALSERVER); + $server = explode(':', $LOCALSERVER); if(count($server) > 1) { - $this->client=&new xmlrpc_client($URI, $server[0], $server[1]); + $this->client=new xmlrpc_client($URI, $server[0], $server[1]); } else { - $this->client=&new xmlrpc_client($URI, $LOCALSERVER); + $this->client=new xmlrpc_client($URI, $LOCALSERVER); } if($DEBUG) { @@ -1164,11 +1165,11 @@ and there they were.postid7414222serialize()); $this->assertEquals($v1, $v2); - $r1 =& new xmlrpcresp($v1); + $r1 = new xmlrpcresp($v1); $r2 = php_xmlrpc_decode_xml($r1->serialize()); $r2->serialize(); // needed to set internal member payload $this->assertEquals($r1, $r2); - $m1 =& new xmlrpcmsg('hello dolly', array($v1)); + $m1 = new xmlrpcmsg('hello dolly', array($v1)); $m2 = php_xmlrpc_decode_xml($m1->serialize()); $m2->serialize(); // needed to set internal member payload $this->assertEquals($m1, $m2); @@ -1307,7 +1308,7 @@ $f = 'assertEquals(8, $r->faultCode()); // now test a successful connection - $server = split(':', $LOCALSERVER); + $server = explode(':', $LOCALSERVER); if(count($server) > 1) { $this->client->port = $server[1]; @@ -1409,6 +1410,7 @@ $f = 'Using lib version: $xmlrpcVersion on PHP version: ".phpversion()."\n"; echo '

Running '.$suite->testCount().' tests (some of which are multiple) against servers: http://'.htmlspecialchars($LOCALSERVER.$URI).' and https://'.htmlspecialchars($HTTPSSERVER.$HTTPSURI)."\n ...

\n"; flush(); + ob_flush(); } else { @@ -1470,4 +1472,4 @@ Proxy Server: \n\n"; } -?> +?> \ No newline at end of file