示例#1
0
 /**
  * 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();
     }
 }
示例#2
0
 /**
  * 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);
     }
 }
示例#3
0
 /**
  * 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'));
 }
示例#4
0
 /**
  * Resets the application's configuration.
  *
  * @return void
  */
 protected function resetApplication()
 {
     if (!empty($this->configure)) {
         Configure::clear();
         Configure::write($this->configure);
     }
 }