*/ class TestListenerForV6 extends TestSuite implements TestListenerInterface { private $suite; private $trait; public function __construct(TestSuite $suite = null) { if ($suite) { $this->suite = $suite; $this->setName($suite->getName().' with polyfills enabled'); $this->addTest($suite); } $this->trait = new TestListenerTrait(); } public function startTestSuite(TestSuite $suite) { $this->trait->startTestSuite($suite); } public function addError(Test $test, \Exception $e, $time) { $this->trait->addError($test, $e, $time); } public function addWarning(Test $test, Warning $e, $time) { } public function addFailure(Test $test, AssertionFailedError $e, $time) { $this->trait->addError($test, $e, $time); } public function addIncompleteTest(Test $test, \Exception $e, $time) { } public function addRiskyTest(Test $test, \Exception $e, $time) { } public function addSkippedTest(Test $test, \Exception $e, $time) { } public function endTestSuite(TestSuite $suite) { } public function startTest(Test $test) { } public function endTest(Test $test, $time) { } public static function warning($message) { return parent::warning($message); } protected function setUp() { TestListenerTrait::$enabledPolyfills = $this->suite->getName(); } protected function tearDown() { TestListenerTrait::$enabledPolyfills = false; } }