public function tearDown() { parent::tearDown(); if ($this->generateRandomString) { $this->randomStringGenerator->writeToPhpFile(__DIR__ . '/MockRandomStrings/DefaultTestRandomString.php', 'Mesour\\DropDownTests\\MockRandomStrings\\DefaultTestRandomString'); } }
function tearDown() { parent::tearDown(); if ($this->tempDir) { try { Files::removeDir($this->tempDir); $this->tempDir = false; } catch (\Exception $e) { throw new \Tester\TestCaseException("Could not remove temp directory {$this->tempDir}, there might be some files left inside.", 1, $e); } } }
protected function tearDown() { parent::tearDown(); Mockery::close(); }
protected function tearDown() { parent::tearDown(); $this->databaseTester->clearDatabase(); }
protected function tearDown() { $this->lifeCycle->onTearDown(); parent::tearDown(); }