/** * {@inheritdoc} */ protected function onNotSuccessfulTest(\Exception $e) { if (!in_array(get_class($e), array('PHPUnit_Framework_IncompleteTestError', 'PHPUnit_Framework_SkippedTestError'))) { $e = new \ErrorException($e->getMessage() . "\nScreenshot: " . $this->makeScreenshot(), $e->getCode(), 0, $e->getFile(), $e->getLine() - 1, $e); } parent::onNotSuccessfulTest($e); }
/** * Clean up Kernel usage in this test. */ protected function tearDown() { $this->session->reset(); parent::tearDown(); }