/** * teardown any static object changes and restore them. * * @return void */ public function tearDown() { parent::tearDown(); if (!empty($this->_configure)) { Configure::clear(); Configure::write($this->_configure); } if (isset($_GET['debug']) && $_GET['debug']) { ob_flush(); } }
/** * teardown any static object changes and restore them. * * @return void */ public function tearDown() { parent::tearDown(); if (!empty($this->_configure)) { Configure::clear(); Configure::write($this->_configure); } }
/** * Test that clear wipes all values. * * @return void */ public function testClear() { Configure::write('test', 'value'); $this->assertTrue(Configure::clear()); $this->assertNull(Configure::read('debug')); $this->assertNull(Configure::read('test')); }
/** * Resets the application's configuration. * * @return void */ protected function resetApplication() { if (!empty($this->configure)) { Configure::clear(); Configure::write($this->configure); } }