X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F1ParsingBugsTest.php;h=3fa7b8e590b803a7457ef4023d77a8a0a930eaed;hb=cdd150f57cf3e077fb89d53be81c197f9727dae7;hp=d8f5779771bee5f43c80cb0236ee76b8ea6f6305;hpb=3167db6472d5b6c691348e38b6f166198325bb6c;p=plcapi.git diff --git a/tests/1ParsingBugsTest.php b/tests/1ParsingBugsTest.php index d8f5779..3fa7b8e 100644 --- a/tests/1ParsingBugsTest.php +++ b/tests/1ParsingBugsTest.php @@ -7,28 +7,32 @@ include_once __DIR__ . '/../lib/xmlrpcs.inc'; include_once __DIR__ . '/parse_args.php'; +include_once __DIR__ . '/PolyfillTestCase.php'; + +use PHPUnit\Runner\BaseTestRunner; + /** * Tests involving parsing of xml and handling of xmlrpc values */ -class ParsingBugsTests extends PHPUnit_Framework_TestCase +class ParsingBugsTests extends PhpXmlRpc_PolyfillTestCase { public $args = array(); - protected function setUp() + protected function set_up() { $this->args = argParser::getArgs(); if ($this->args['DEBUG'] == 1) ob_start(); } - protected function tearDown() + protected function tear_down() { if ($this->args['DEBUG'] != 1) return; $out = ob_get_clean(); $status = $this->getStatus(); - if ($status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR - || $status == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE) { + if ($status == BaseTestRunner::STATUS_ERROR + || $status == BaseTestRunner::STATUS_FAILURE) { echo $out; } } @@ -159,7 +163,7 @@ class ParsingBugsTests extends PHPUnit_Framework_TestCase public function testI8() { if (PHP_INT_SIZE == 4 ) { - $this->markTestSkipped('did not find a locale which sets decimal separator to comma'); + $this->markTestSkipped('Can not test i8 as php is compiled in 32 bit mode'); return; }