10 class Listener implements \PHPUnit\Framework\TestListener
17 public function addError(\PHPUnit\Framework\Test $test, \Exception $e, $time)
26 public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\AssertionFailedError $e, $time)
44 public function addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
53 public function addSkippedTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
74 public function startTest(\PHPUnit\Framework\Test $test)
77 $this->logger->clearMessages();
84 public function endTest(\PHPUnit\Framework\Test $test, $time)
86 if ($test instanceof \PHPUnit\Framework\TestCase) {
87 $messages = $this->logger->getMessages();
92 var_export($messages,
true),
93 'Errors were added to log during test execution.' 96 }
catch (\Exception $e) {
97 $test->getTestResultObject()->addError($test, $e, 0);
105 public function addWarning(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Warning $e, $time)
endTestSuite(\PHPUnit\Framework\TestSuite $suite)
addRiskyTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\AssertionFailedError $e, $time)
endTest(\PHPUnit\Framework\Test $test, $time)
startTest(\PHPUnit\Framework\Test $test)
startTestSuite(\PHPUnit\Framework\TestSuite $suite)
addWarning(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Warning $e, $time)
addSkippedTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addIncompleteTest(\PHPUnit\Framework\Test $test, \Exception $e, $time)
addError(\PHPUnit\Framework\Test $test, \Exception $e, $time)
static getObjectManager()