public function PHPUnit_Util_Log_JSON::addError

An error occurred.

Parameters

PHPUnit_Framework_Test $test:

Exception $e:

float $time:

Overrides PHPUnit_Framework_TestListener::addError

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php, line 82

Class

PHPUnit_Util_Log_JSON
A TestListener that generates JSON messages.

Code

public function addError(PHPUnit_Framework_Test $test, Exception $e, $time) {
  $this
    ->writeCase('error', $time, PHPUnit_Util_Filter::getFilteredStacktrace($e, FALSE), $e
    ->getMessage(), $test);
  $this->currentTestPass = FALSE;
}