X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Fbenchmark.php;h=6758d263a900d47111c41a88ac184d2eb3359445;hb=31d3cedaafa355e5682d55a3d7178b53aedfbaa0;hp=1c41ab79a410790513ca13de92aa2b390ef9df9e;hpb=61bf7d4cf055db33507c3e14472254ea6984e001;p=plcapi.git diff --git a/test/benchmark.php b/test/benchmark.php index 1c41ab7..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? **/ - include(getcwd().'/parse_args.php'); + include(dirname(__FILE__).'/parse_args.php'); require_once('xmlrpc.inc'); @@ -83,7 +82,7 @@ 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);