/**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Configure::write('log', true);
     DebugKitDebugger::clearTimers();
     TestFireCake::reset();
 }
Esempio n. 2
0
 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
Esempio n. 3
0
 /**
  * tear down function
  *
  * @return void
  **/
 function endTest()
 {
     App::build(array('plugins' => $this->_paths['plugins'], 'views' => $this->_paths['views'], 'vendors' => $this->_paths['vendors'], 'controllers' => $this->_paths['controllers']));
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
 /**
  * tear down function
  *
  * @return void
  **/
 function endTest()
 {
     Configure::write('pluginPaths', $this->_paths['plugin']);
     Configure::write('viewPaths', $this->_paths['view']);
     Configure::write('vendorPaths', $this->_paths['vendor']);
     Configure::write('controllerPaths', $this->_paths['controller']);
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
 /**
  * endTest
  *
  * @return void
  **/
 function endTest()
 {
     $_SERVER = $this->_server;
     Configure::write('pluginPaths', $this->_paths['plugin']);
     Configure::write('viewPaths', $this->_paths['view']);
     Configure::write('vendorPaths', $this->_paths['vendor']);
     Configure::write('controllerPaths', $this->_paths['controller']);
     Configure::write('Cache.disable', true);
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
     }
 }
Esempio n. 6
0
 /**
  * end a test
  *
  * @return void
  */
 function endTest()
 {
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
 /**
  * tearDown method
  *
  * @access public
  * @return void
  */
 function tearDown()
 {
     Configure::write('log', true);
     DebugKitDebugger::clearTimers();
 }
/**
 * endTest
 *
 * @return void
 **/
	public function tearDown() {
		parent::tearDown();

		$_SERVER = $this->_server;
		$_GET = $this->_get;
		App::build(array(
			'plugins' => $this->_paths['plugins'],
			'views' => $this->_paths['views'],
			'controllers' => $this->_paths['controllers'],
			'vendors' => $this->_paths['vendors']
		), true);
		Configure::write('Cache.disable', true);

		unset($this->Controller);
		ClassRegistry::flush();
		if (class_exists('DebugKitDebugger')) {
			DebugKitDebugger::clearTimers();
			DebugKitDebugger::clearMemoryPoints();
		}
		Router::reload();
	}
Esempio n. 9
0
 /**
  * teardown
  *
  * @return void
  **/
 function tearDown()
 {
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
     }
 }
 /**
  * endTest
  *
  * @return void
  **/
 function endTest()
 {
     $_SERVER = $this->_server;
     App::build(array('plugins' => $this->_paths['plugins'], 'views' => $this->_paths['views'], 'controllers' => $this->_paths['controllers'], 'vendors' => $this->_paths['vendors']), true);
     Configure::write('Cache.disable', true);
     unset($this->Controller);
     if (class_exists('DebugKitDebugger')) {
         DebugKitDebugger::clearTimers();
         DebugKitDebugger::clearMemoryPoints();
     }
 }
Esempio n. 11
0
 /**
  * tear down function
  *
  * @return void
  **/
 function tearDown()
 {
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
     Configure::write('debug', $this->_debug);
 }
Esempio n. 12
0
 /**
  * tear down function
  *
  * @return void
  **/
 public function tearDown()
 {
     unset($this->View, $this->Controller);
     DebugKitDebugger::clearTimers();
 }
Esempio n. 13
0
 /**
  * test getting all the set timers.
  *
  * @return void
  **/
 function testGetTimers()
 {
     DebugKitDebugger::clearTimers();
     DebugKitDebugger::startTimer('test1', 'this is my first test');
     DebugKitDebugger::stopTimer('test1');
     usleep(50);
     DebugKitDebugger::startTimer('test2');
     DebugKitDebugger::stopTimer('test2');
     $timers = DebugKitDebugger::getTimers();
     $this->assertEqual(count($timers), 2);
     $this->assertTrue(is_float($timers['test1']['time']));
     $this->assertTrue(isset($timers['test1']['message']));
     $this->assertTrue(isset($timers['test2']['message']));
 }