/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.2 */ protected function tearDown() { // Reset the dispatcher instance. TestReflection::setValue('JEventDispatcher', 'instance', null); // Reset some web inspector static settings. JApplicationCmsInspector::$headersSent = false; JApplicationCmsInspector::$connectionAlive = true; $_SERVER = $this->backupServer; $this->restoreFactoryState(); parent::tearDown(); }
/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 3.2 */ protected function tearDown() { TestReflection::setValue('JPluginHelper', 'plugins', null); // Reset some web inspector static settings. JApplicationCmsInspector::$headersSent = false; JApplicationCmsInspector::$connectionAlive = true; $_SERVER = $this->backupServer; $_SERVER = $this->backupServer; unset($this->backupServer); unset($config); unset($this->class); $this->restoreFactoryState(); parent::tearDown(); }