/** * 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')); }
/** * teardown any static object changes and restore them. * * @return void */ public function tearDown() { parent::tearDown(); App::build($this->_pathRestore, App::RESET); if (class_exists('ClassRegistry', false)) { ClassRegistry::flush(); } if (!empty($this->_configure)) { Configure::clear(); Configure::write($this->_configure); } if (isset($_GET['debug']) && $_GET['debug']) { ob_flush(); } }