protected function setUp() { $this->args = argParser::getArgs(); if ($this->args['DEBUG'] == 1) { ob_start(); } }
public function setUp() { $this->args = argParser::getArgs(); $this->client = new xmlrpc_client('/NOTEXIST.php', $this->args['LOCALSERVER'], 80); $this->client->setDebug($this->args['DEBUG']); if ($this->args['DEBUG'] == 1) { ob_start(); } }
public function setUp() { $this->args = argParser::getArgs(); $server = explode(':', $this->args['LOCALSERVER']); if (count($server) > 1) { $this->client = new xmlrpc_client($this->args['URI'], $server[0], $server[1]); } else { $this->client = new xmlrpc_client($this->args['URI'], $this->args['LOCALSERVER']); } $this->client->setDebug($this->args['DEBUG']); $this->client->request_compression = $this->request_compression; $this->client->accepted_compression = $this->accepted_compression; $this->coverageScriptUrl = 'http://' . $this->args['LOCALSERVER'] . '/' . str_replace('/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['URI']); if ($this->args['DEBUG'] == 1) { ob_start(); } }
* @author Gaetano Giunta * @copyright (c) 2005-2015 G. Giunta * @license code licensed under the BSD License: see file license.txt * * @todo add a test for response ok in call testing * @todo add support for --help option to give users the list of supported parameters **/ use PhpXmlRpc\PhpXmlRpc; use PhpXmlRpc\Value; use PhpXmlRpc\Request; use PhpXmlRpc\Client; use PhpXmlRpc\Response; use PhpXmlRpc\Encoder; include_once __DIR__ . '/../vendor/autoload.php'; include __DIR__ . '/parse_args.php'; $args = argParser::getArgs(); function begin_test($test_name, $test_case) { global $test_results; if (!isset($test_results[$test_name])) { $test_results[$test_name] = array(); } $test_results[$test_name][$test_case] = array(); $test_results[$test_name][$test_case]['time'] = microtime(true); } function end_test($test_name, $test_case, $test_result) { global $test_results; $end = microtime(true); if (!isset($test_results[$test_name][$test_case])) { trigger_error('ending test that was not started');
public function setUp() { $this->args = argParser::getArgs(); $this->baseUrl = $this->args['LOCALSERVER'] . str_replace('/demo/server/server.php', '/debugger/', $this->args['URI']); $this->coverageScriptUrl = 'http://' . $this->args['LOCALSERVER'] . '/' . str_replace('/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['URI']); }