assertEmpty($methods, $bridgeName . " defines additional public functions!\n" . $method_names); } public function testBridgeImplementation($bridge){ $this->CheckBridgePublicFunctions($bridge); } public function count() { return count($this->ListBridges()); } public function run(PHPUnit_Framework_TestResult $result = NULL) { if ($result === NULL) { $result = new PHPUnit_Framework_TestResult; } foreach ($this->ListBridges() as $bridge) { $result->startTest($this); PHP_Timer::start(); $stopTime = NULL; //list($expected, $actual) = explode(';', $bridge); try { $this->testBridgeImplementation($bridge); } catch (PHPUnit_Framework_AssertionFailedError $e) { $stopTime = PHP_Timer::stop(); $result->addFailure($this, $e, $stopTime); } catch (Exception $e) { $stopTime = PHP_Timer::stop(); $result->addError($this, $e, $stopTime); } if ($stopTime === NULL) { $stopTime = PHP_Timer::stop(); } $result->endTest($this, $stopTime); } return $result; } }