/** * @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); }
/** * @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); } } }