コード例 #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
ファイル: JHelpTest.php プロジェクト: Rai-Ka/joomla-cms
 /**
  * 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
ファイル: JHtmlBatchTest.php プロジェクト: eshiol/joomla-cms
 /**
  * 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();
 }
コード例 #7
0
 /**
  * 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
ファイル: JAccessTest.php プロジェクト: Rai-Ka/joomla-cms
 /**
  * Remove created files
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function tearDown()
 {
     $this->_cleanupTestFiles();
     unset($this->object);
     $this->restoreFactoryState();
     parent::tearDown();
 }
コード例 #11
0
ファイル: JFactoryTest.php プロジェクト: nirpan/joomla-cms
 /**
  * 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();
	}
コード例 #16
0
 /**
  * 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
ファイル: JErrorPageTest.php プロジェクト: SysBind/joomla-cms
 /**
  * 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
ファイル: JRouterSiteTest.php プロジェクト: eshiol/joomla-cms
 /**
  * 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();
 }
コード例 #20
0
 /**
  * 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();
 }
コード例 #21
0
 /**
  * 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();
 }