/** * Overrides the parent tearDown method. * * @return void * * @see PHPUnit_Framework_TestCase::tearDown() * @since 11.3 */ protected function tearDown() { // Reset some daemon inspector static settings. JApplicationDaemonInspector::$pcntlChildExitStatus = 0; JApplicationDaemonInspector::$pcntlFork = 0; JApplicationDaemonInspector::$pcntlSignal = true; JApplicationDaemonInspector::$pcntlWait = 0; // Check if the inspector was instantiated. if (isset($this->inspector)) { $this->inspector->setClassInstance(null); } $this->restoreFactoryState(); parent::tearDown(); }