/**
 * 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();
	}
/**
 * test making memory use markers.
 *
 * @return void
 **/
	public function testMemorySettingAndGetting() {
		DebugKitDebugger::clearMemoryPoints();
		$result = DebugKitDebugger::setMemoryPoint('test marker');
		$this->assertTrue($result);

		$result = DebugKitDebugger::getMemoryPoints(true);
		$this->assertEqual(count($result), 1);
		$this->assertTrue(isset($result['test marker']));
		$this->assertTrue(is_numeric($result['test marker']));

		$result = DebugKitDebugger::getMemoryPoints();
		$this->assertTrue(empty($result));

		DebugKitDebugger::setMemoryPoint('test marker');
		DebugKitDebugger::setMemoryPoint('test marker');
		$result = DebugKitDebugger::getMemoryPoints();
		$this->assertEqual(count($result), 2);
		$this->assertTrue(isset($result['test marker']));
		$this->assertTrue(isset($result['test marker #2']));
	}
 /**
  * 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();
     }
 }
 /**
  * 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();
         DebugKitDebugger::clearMemoryPoints();
     }
 }