public function TravisLogEventListener::endTest in Search API Solr 8
Same name and namespace in other branches
- 8.3 tests/src/TravisLogEventListener.php \Drupal\Tests\search_api_solr\TravisLogEventListener::endTest()
File
- tests/
src/ TravisLogEventListener.php, line 52
Class
Namespace
Drupal\Tests\search_api_solrCode
public function endTest(Test $test, $time) {
if (file_exists(TRAVIS_BUILD_DIR . '/solr.query.log')) {
if ($this->errors) {
file_put_contents(TRAVIS_BUILD_DIR . '/solr.error.log', file_get_contents(TRAVIS_BUILD_DIR . '/solr.query.log'), FILE_APPEND | LOCK_EX);
}
unlink(TRAVIS_BUILD_DIR . '/solr.query.log');
}
}