コード例 #1
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     $this->event = null;
     ezpEvent::resetInstance();
     parent::tearDown();
 }
コード例 #2
0
 protected function tearDown()
 {
     if (ezpTestRunner::dbPerTest()) {
         $db = eZDB::instance();
         $db->close();
     }
     parent::tearDown();
 }
コード例 #3
0
 public function tearDown()
 {
     // Make sure to restore the RequestURI in case other tests depends on
     // on the RequestURI variable.
     $ezsys = eZSys::instance();
     $ezsys->RequestURI = $this->originalRequestURI;
     parent::tearDown();
 }
コード例 #4
0
 public function tearDown()
 {
     $filename = 'tests/tests/lib/ezimage/data/andernach_multihandler.jpg';
     if (is_file($filename)) {
         unlink($filename);
     }
     parent::tearDown();
 }
コード例 #5
0
 public function tearDown()
 {
     foreach (array($this->rootDir . 'a/fileA', $this->rootDir . 'a/b/fileB') as $file) {
         file_exists($file) && unlink($file);
     }
     foreach (array($this->rootDir . 'a/b/c/', $this->rootDir . 'a/b/', $this->rootDir . 'a/', $this->rootDir) as $dir) {
         file_exists($dir) && rmdir($dir);
     }
     parent::tearDown();
 }
コード例 #6
0
 public function tearDown()
 {
     // If file has been renamed, restore it at original place
     if ( file_exists( $this->destFile ) )
         rename( $this->destFile, $this->file );
     // If file has been removed, restore it as well
     if ( !file_exists( $this->file ) )
         file_put_contents ( $this->file, $this->content );
     PHPUnit_Framework_Error_Warning::$enabled = $this->warningEnabledOrig;
     parent::tearDown();
 }
コード例 #7
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     unlink("tests/tests/lib/ezimage/data/andernach_small.jpg");
     parent::tearDown();
 }
コード例 #8
0
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #9
0
 public function tearDown()
 {
     parent::tearDown();
     ezpINIHelper::restoreINISettings();
     $this->mobileDeviceDetect = null;
 }
コード例 #10
0
 public function tearDown()
 {
     parent::tearDown();
     $this->mobileDeviceDetect = null;
 }
コード例 #11
0
ファイル: ezmail_test.php プロジェクト: CG77/ezpublish-legacy
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     parent::tearDown();
 }
コード例 #12
0
 public function tearDown()
 {
     ezpINIHelper::restoreINISettings();
     eZCache::clearByID('active_extensions');
     parent::tearDown();
 }
コード例 #13
0
 protected function tearDown()
 {
     $GLOBALS['eZDebugEnabled'] = false;
     parent::tearDown();
 }
コード例 #14
0
 public function tearDown()
 {
     date_default_timezone_set($this->defaultTimezone);
     parent::tearDown();
 }
コード例 #15
0
 public function tearDown()
 {
     // Make sure to restore eZSys instance in case other tests depends on it
     eZSys::setInstance($this->oldSysInstance);
     parent::tearDown();
 }