public function tearDown() { if ($this->resetTestModuleAtTearDown) { ModuleWriteableMock::tearDown(); } parent::tearDown(); }
public function tearDown() { // remove test files foreach ($this->filesToDeleteAtTearDown as $filePath) { DirectoryHelper::removeFile($filePath); } // remove test directories foreach ($this->directoriesToDeleteAtTearDown as $directory) { DirectoryHelper::removeRecursiv($directory); } ModuleWriteableMock::tearDown(); parent::tearDown(); }
public function tearDown() { ModuleWriteableMock::tearDown(); parent::tearDown(); }
protected function tearDown() { ModuleWriteableMock::tearDown(); DirectoryHelper::clearLatchDirectory(); parent::tearDown(); }
protected function tearDown() { $this->clearFakeUpload(); ModuleWriteableMock::tearDown(); parent::tearDown(); }
public static function tearDown() { DaoFactory::reset(); foreach (self::getActiveMocks() as $mockName => $mockData) { $mockState = isset($mockData['state']) ? $mockData['state'] : $mockData; switch ($mockName . '-' . $mockState) { case 'Module-readable': ModuleReadonlyMock::tearDown(); break; case 'Module-writeable': ModuleWriteableMock::tearDown(); break; case 'Website-readable': WebsiteReadonlyMock::tearDown(); break; case 'Website-writeable': WebsiteWriteableMock::tearDown(); break; case 'Page-readable': PageReadonlyMock::tearDown(); break; case 'Page-writeable': PageWriteableMock::tearDown(); break; case 'Package-readable': PackageReadonlyMock::tearDown(); break; case 'Package-writeable': PackageWriteableMock::tearDown(); break; case 'WebsiteSettings-readable': WebsiteSettingsReadonlyMock::tearDown(); break; case 'WebsiteSettings-writeable': WebsiteSettingsWriteableMock::tearDown(); break; case 'PageType-readable': PageTypeReadonlyMock::tearDown(); break; case 'PageType-writeable': PageTypeWriteableMock::tearDown(); break; } } self::$activatedMocks = array(); }