protected function ShutdownFunctionsTest::tearDown in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php \Drupal\Tests\system\Functional\System\ShutdownFunctionsTest::tearDown()
- 10 core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php \Drupal\Tests\system\Functional\System\ShutdownFunctionsTest::tearDown()
Overrides BrowserTestBase::tearDown
File
- core/
modules/ system/ tests/ src/ Functional/ System/ ShutdownFunctionsTest.php, line 26
Class
- ShutdownFunctionsTest
- Functional tests shutdown functions.
Namespace
Drupal\Tests\system\Functional\SystemCode
protected function tearDown() {
// This test intentionally throws an exception in a PHP shutdown function.
// Prevent it from being interpreted as an actual test failure.
// Not using File API; a potential error must trigger a PHP warning.
unlink(\Drupal::root() . '/' . $this->siteDirectory . '/error.log');
parent::tearDown();
}