コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }