/** * End a test * * @return void */ public function tearDown() { parent::tearDown(); unset($this->Article); TableRegistry::clear(); DebugTimer::clear(); }
/** * setup * * @return void */ public function setUp() { parent::setUp(); $mock = $this->getMock('Cake\\Cache\\CacheEngine'); $this->mock = $mock; $this->engine = new DebugEngine($mock); $this->engine->init(); DebugTimer::clear(); }
/** * tearDown method * * @return void */ public function tearDown() { DebugTimer::clear(); }