コード例 #1
0
ファイル: TestCase.php プロジェクト: ripzappa0924/carte0.0.1
 /**
  * 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
ファイル: TestCase.php プロジェクト: CakeDC/cakephp
 /**
  * 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
ファイル: ConfigureTest.php プロジェクト: rashmi/newrepo
 /**
  * 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
ファイル: Framework.php プロジェクト: cakephp/codeception
 /**
  * Resets the application's configuration.
  *
  * @return void
  */
 protected function resetApplication()
 {
     if (!empty($this->configure)) {
         Configure::clear();
         Configure::write($this->configure);
     }
 }