From 81648c957ee495ed42d75867e3c61f5bc63dbb95 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Thu, 5 Aug 2010 23:58:16 +0000 Subject: [PATCH] update ParserTestSuiteBackend to match signature on setupRecorder() --- maintenance/tests/ParserHelpers.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/maintenance/tests/ParserHelpers.php b/maintenance/tests/ParserHelpers.php index ec73402d31..893bf8b420 100644 --- a/maintenance/tests/ParserHelpers.php +++ b/maintenance/tests/ParserHelpers.php @@ -12,10 +12,10 @@ class ParserUnitTest extends PHPUnit_Framework_TestCase { function count() { return 1; } public function run( PHPUnit_Framework_TestResult $result = null ) { - PHPUnit_Framework_Assert::resetCount(); - if ( $result === NULL ) { - $result = new PHPUnit_Framework_TestResult; - } + PHPUnit_Framework_Assert::resetCount(); + if ( $result === NULL ) { + $result = new PHPUnit_Framework_TestResult; + } $backend = $this->suite->getBackend(); $result->startTest( $this ); @@ -24,12 +24,12 @@ class ParserUnitTest extends PHPUnit_Framework_TestCase { $r = false; try { # Run the test. - # On failure, the subclassed backend will throw an exception with + # On failure, the subclassed backend will throw an exception with # the details. $r = $backend->runTest( $this->test['test'], - $this->test['input'], - $this->test['result'], + $this->test['input'], + $this->test['result'], $this->test['options'], $this->test['config'] ); @@ -71,7 +71,7 @@ class ParserTestSuiteBackend extends ParserTest { PHPUnit_Framework_Assert::assertEquals( $expected, $got, $desc ); } - public function setupRecorder() { + public function setupRecorder( $options ) { $this->recorder = new PHPUnitTestRecorder( $this ); } } -- 2.20.1