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(); }
protected function tearDown() { // If the test is being run from the main site, tear down normally. if (!$this->isInChildSite()) { unlink($this->sharedTriggerFile); parent::tearDown(); } else { if (file_get_contents($this->sharedTriggerFile) === 'teardown') { throw new \Exception('Broken teardown'); } $this->pass('The tearDown() method has run.'); } }
/** * {@inheritDoc} */ protected function tearDown() { if ($this->assertWatchdogErrors) { $this->assertMollomWatchdogMessages(); } $this->mollom = NULL; parent::tearDown(); }
/** * {@inheritdoc} */ protected function tearDown() { Database::removeConnection('migrate'); parent::tearDown(); }
/** * {@inheritdoc} */ public function tearDown() { // Capture any (remaining) watchdog errors. $this->assertNoWatchdogErrors(); parent::tearDown(); }
/** * @todo. */ public function tearDown() { variable_del('date_first_day'); parent::tearDown(); }
/** * {@inheritDoc} */ protected function tearDown() { $this->assertMollomWatchdogMessages(); parent::tearDown(); }