예제 #1
0
 public function tearDown()
 {
     if ($this->resetTestModuleAtTearDown) {
         ModuleWriteableMock::tearDown();
     }
     parent::tearDown();
 }
예제 #2
0
 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();
 }
예제 #3
0
 public function tearDown()
 {
     ModuleWriteableMock::tearDown();
     parent::tearDown();
 }
예제 #4
0
 protected function tearDown()
 {
     ModuleWriteableMock::tearDown();
     DirectoryHelper::clearLatchDirectory();
     parent::tearDown();
 }
예제 #5
0
 protected function tearDown()
 {
     $this->clearFakeUpload();
     ModuleWriteableMock::tearDown();
     parent::tearDown();
 }
예제 #6
0
 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();
 }