本文整理汇总了PHP中ClassRegistry::flush方法的典型用法代码示例。如果您正苦于以下问题:PHP ClassRegistry::flush方法的具体用法?PHP ClassRegistry::flush怎么用?PHP ClassRegistry::flush使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ClassRegistry
的用法示例。
在下文中一共展示了ClassRegistry::flush方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* Tear Down
*
* @author Everton Yoshitani <everton@wizehive.com>
* @since 1.0
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->DataTypeJuggling);
unset($this->TestModel);
ClassRegistry::flush();
}
示例2: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
CakeSession::clear();
CakeSession::destroy();
ClassRegistry::flush();
}
示例3: _reset
function _reset()
{
unset($this->Controller);
unset($this->Component);
unset($this->Model);
ClassRegistry::flush();
}
示例4: endTest
/**
* endTest method
*
* @access public
* @return void
*/
function endTest()
{
unset($this->PosPostsTagFixturet);
unset($this->PostFixture);
unset($this->Post);
ClassRegistry::flush();
}
示例5: endTest
public function endTest()
{
$this->Session->destroy();
unset($this->Leaders);
unset($this->Session);
ClassRegistry::flush();
}
示例6: tearDown
/**
* tearDown
*
* @return void
*/
public function tearDown()
{
unset($this->Toolbar, $this->Controller);
ClassRegistry::flush();
Router::reload();
TestFireCake::reset();
}
示例7: tearDown
function tearDown()
{
$this->Data->flushFiles();
$this->Folder->delete();
ClassRegistry::flush();
Configure::write('Media', $this->_mediaConfig);
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
$this->Data->cleanUp();
ClassRegistry::flush();
Configure::write('Media', $this->oldConfig);
}
示例9: endTest
public function endTest($method)
{
parent::endTest($method);
unset($this->AdminCrud);
unset($this->User);
ClassRegistry::flush();
}
示例10: tearDown
/**
* Method executed after each test
*
* @return void
*/
public function tearDown()
{
parent::tearDown();
unset($this->Article);
ClassRegistry::flush();
CakeSession::delete('Auth');
}
示例11: testConstruct_with_ds
public function testConstruct_with_ds()
{
ClassRegistry::flush();
$this->Twim = ClassRegistry::init(array('class' => 'TestTwimAppModel', 'ds' => 'test_twitter2', 'testing' => false));
$this->assertInstanceOf('TestTwimAppModelTwimSource', $this->Twim->getDataSource());
$this->assertSame('testConsumerKey', $this->Twim->getDataSource()->config['oauth_consumer_key']);
}
示例12: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
Configure::delete('TestMailerConfig');
unset($this->Mailer);
ClassRegistry::flush();
parent::tearDown();
}
示例13: endTest
public function endTest($method = null)
{
$this->Model = null;
$this->Behavior = null;
ClassRegistry::flush();
parent::endTest($method);
}
示例14: beforeFilter
/**
* beforeFilter
*
* @return void
*/
public function beforeFilter()
{
parent::beforeFilter();
$this->Auth->deny('index');
$this->initTabs('frame_settings');
ClassRegistry::flush();
}
示例15: tearDown
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this->Task);
ClassRegistry::flush();
App::build();
parent::tearDown();
}