protected function PHPUnit_Util_Log_JSON::writeCase

Parameters

string $status:

float $time:

array $trace:

string $message:

5 calls to PHPUnit_Util_Log_JSON::writeCase()
PHPUnit_Util_Log_JSON::addError in drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php
An error occurred.
PHPUnit_Util_Log_JSON::addFailure in drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php
A failure occurred.
PHPUnit_Util_Log_JSON::addIncompleteTest in drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php
Incomplete test.
PHPUnit_Util_Log_JSON::addSkippedTest in drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php
Skipped test.
PHPUnit_Util_Log_JSON::endTest in drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php
A test ended.

File

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

Class

PHPUnit_Util_Log_JSON
A TestListener that generates JSON messages.

Code

protected function writeCase($status, $time, array $trace = array(), $message = '', $test = NULL) {
  $output = '';
  if ($test !== NULL && $test
    ->hasOutput()) {
    $output = $test
      ->getActualOutput();
  }
  $this
    ->write(array(
    'event' => 'test',
    'suite' => $this->currentTestSuiteName,
    'test' => $this->currentTestName,
    'status' => $status,
    'time' => $time,
    'trace' => $trace,
    'message' => PHPUnit_Util_String::convertToUtf8($message),
    'output' => $output,
  ));
}