Пример #1
0
 public function tearDown()
 {
     //		$this->stop();
     parent::tearDown();
     $this->config->tearDown();
 }
Пример #2
0
 /**
  * @copydoc PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     parent::tearDown();
     if (Config::getVar('general', 'installed')) {
         $affectedTables = $this->getAffectedTables();
         if (is_array($affectedTables)) {
             PKPTestHelper::restoreTables($this->getAffectedTables(), $this);
         } elseif ($affectedTables === PKP_TEST_ENTIRE_DB) {
             PKPTestHelper::restoreDB($this);
         }
     }
 }
Пример #3
0
 public function tearDown()
 {
     parent::tearDown();
     $this->config->tearDown();
 }
Пример #4
0
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     parent::tearDown();
     Mockery::close();
 }
 public function tearDown()
 {
     Kwf_Test_SeparateDb::restoreTestDb();
     // macht das nur wenns eine gibt
     parent::tearDown();
 }
Пример #6
0
 protected function tearDown()
 {
     if ($this->clearDbAfterTest) {
         Nano_Db::clean();
     }
     if ($this->clearLogAfterTest) {
         Nano_Log::clear();
     }
     parent::tearDown();
 }