public function TravisLogEventListener::addError in Search API Solr 8
Same name and namespace in other branches
- 8.3 tests/src/TravisLogEventListener.php \Drupal\Tests\search_api_solr\TravisLogEventListener::addError()
File
- tests/
src/ TravisLogEventListener.php, line 25
Class
Namespace
Drupal\Tests\search_api_solrCode
public function addError(Test $test, \Exception $e, $time) {
$this->errors = TRUE;
file_put_contents(TRAVIS_BUILD_DIR . '/solr.error.log', printf("Error while running test '%s'.\n", $test
->getName()), FILE_APPEND | LOCK_EX);
}