Пример #1
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     // Restore the factory state
     $this->restoreFactoryState();
     unset($this->object);
     parent::tearDown();
 }
Пример #2
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  */
 protected function tearDown()
 {
     // Reset the filter instances.
     TestReflection::setValue('JFilterInput', 'instances', array());
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #3
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.0
  */
 protected function tearDown()
 {
     TestReflection::setValue('JComponentHelper', 'components', array());
     // Restore the state
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #4
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function tearDown()
 {
     $_SERVER = $this->backupServer;
     unset($this->backupServer);
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #5
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     // Reset the dispatcher instance.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     $_SERVER = $this->backupServer;
     $this->restoreFactoryState();
     parent::tearDown();
 }
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->db);
     parent::tearDown();
 }
 /**
  * Remove created files
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->_cleanupTestFiles();
     unset($this->object);
     parent::tearDown();
 }
Пример #8
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->object);
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #9
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     // Reset the dispatcher and application instances.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     TestReflection::setValue('JApplicationCms', 'instances', array());
     $_SERVER = $this->backupServer;
     unset($this->backupServer);
     unset($config);
     unset($this->class);
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #10
0
 /**
  * Remove created files
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->_cleanupTestFiles();
     unset($this->object);
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #11
0
 /**
  * Tears down the fixture.
  *
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function tearDown()
 {
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #12
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();
 }
Пример #13
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.6
  */
 protected function tearDown()
 {
     unset($this->object);
     unset($app);
     parent::tearDown();
 }
Пример #14
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();
 }
Пример #15
0
	/**
	 * Tears down the fixture, for example, closes a network connection.
	 * This method is called after a test is executed.
	 *
	 * @return  void
	 */
	protected function tearDown()
	{
		parent::tearDown();
	}
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     TestReflection::setValue('JPluginHelper', 'plugins', null);
     parent::tearDown();
 }
Пример #17
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     TestReflection::setValue('JDocument', 'instances', array());
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #18
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     $_SERVER = $this->server;
     unset($this->server);
     parent::tearDown();
 }
Пример #19
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   4.0
  */
 protected function tearDown()
 {
     TestReflection::setValue('JComponentHelper', 'components', array());
     parent::tearDown();
 }
 /**
  * Tears down the fixture.
  *
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   11.3
  */
 protected function tearDown()
 {
     // 		$this->restoreFactoryState();
     unset($this->class);
     parent::tearDown();
 }
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  *
  * @since   3.6
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     TestReflection::setValue($this->dispatcher, 'instance', null);
     parent::tearDown();
 }
Пример #22
0
 /**
  * Method to tear down what was previously setup before each tests.
  *
  * @since   12.3
  *
  * @return  void
  */
 public function tearDown()
 {
     $this->fixture = null;
     parent::tearDown();
 }
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     parent::tearDown();
 }
Пример #24
0
 /**
  * Overrides the parent tearDown method.
  *
  * @return  void
  *
  * @see     PHPUnit_Framework_TestCase::tearDown()
  * @since   3.2
  */
 protected function tearDown()
 {
     // Reset the dispatcher and application instances.
     TestReflection::setValue('JEventDispatcher', 'instance', null);
     TestReflection::setValue('JApplicationCms', 'instances', array());
     $this->restoreFactoryState();
     parent::tearDown();
 }