/**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Configure::write('log', true);
     DebugTimer::clear();
     TestFireCake::reset();
 }
Exemplo n.º 2
0
 /**
  * endTest
  *
  * @return void
  */
 public function tearDown()
 {
     $_SERVER = $this->_server;
     $_GET = $this->_get;
     parent::tearDown();
     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('DebugMemory')) {
         DebugMemory::clear();
     }
     if (class_exists('DebugTimer')) {
         DebugTimer::clear();
     }
     Router::reload();
 }
Exemplo n.º 3
0
 /**
  * Clear all existing timers
  *
  * @return bool true
  * @deprecated use DebugTimer::clear()
  */
 public static function clearTimers()
 {
     return DebugTimer::clear();
 }
Exemplo n.º 4
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     DebugTimer::clear();
 }