X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Fbenchmark.php;h=6758d263a900d47111c41a88ac184d2eb3359445;hb=31d3cedaafa355e5682d55a3d7178b53aedfbaa0;hp=f320146960840fcee09a08079616d214efb23e38;hpb=322fe8c316efdb0e5844898f439bbb0cfdc52fb3;p=plcapi.git diff --git a/test/benchmark.php b/test/benchmark.php index f320146..6758d26 100644 --- a/test/benchmark.php +++ b/test/benchmark.php @@ -2,14 +2,13 @@ /** * Benchamrking suite for the PHP-XMLRPC lib * @author Gaetano Giunta - * @version $Id$ - * @copyright (c) 2005-2009 G. Giunta + * @copyright (c) 2005-2014 G. Giunta * @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt * * @todo add a test for response ok in call testing? **/ -ini_set('max_execution_time', 300); - include(getcwd().'/parse_args.php'); + + include(dirname(__FILE__).'/parse_args.php'); require_once('xmlrpc.inc'); @@ -83,7 +82,7 @@ ini_set('max_execution_time', 300); begin_test('Data encoding (large array)', 'automatic encoding'); for ($i = 0; $i < $num_tests; $i++) { - $value =& php_xmlrpc_encode($data, array('auto_dates')); + $value = php_xmlrpc_encode($data, array('auto_dates')); $out = $value->serialize(); } end_test('Data encoding (large array)', 'automatic encoding', $out);