You are here

public function TravisLogEventListener::addFailure in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 tests/src/TravisLogEventListener.php \Drupal\Tests\search_api_solr\TravisLogEventListener::addFailure()

File

tests/src/TravisLogEventListener.php, line 41

Class

TravisLogEventListener

Namespace

Drupal\Tests\search_api_solr

Code

public function addFailure(Test $test, AssertionFailedError $e, float $time) : void {
  $this->errors = TRUE;
  file_put_contents(TRAVIS_BUILD_DIR . '/solr.error.log', printf("Test '%s' failed.\n", $test
    ->getName()), FILE_APPEND | LOCK_EX);
}