/** * @copydoc PHPUnit_Framework_TestCase::tearDown() */ protected function tearDown() { parent::tearDown(); $affectedTables = $this->getAffectedTables(); if (is_array($affectedTables)) { PKPTestHelper::restoreTables($this->getAffectedTables(), $this); } elseif ($affectedTables === PKP_TEST_ENTIRE_DB) { PKPTestHelper::restoreDB($this); } // Switch xdebug screaming back on. PKPTestHelper::xdebugScream(true); }
/** * @see PKPTestCase::tearDown() */ protected function tearDown() { HookRegistry::resetCalledHooks(); parent::tearDown(); }
public function tearDown() { // Delete the test citations. $this->citationDao->deleteObjectsByAssocId($this->assocType, $this->assocId); parent::tearDown(); }