本文整理匯總了PHP中Illuminate\Foundation\Application::flush方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application::flush方法的具體用法?PHP Application::flush怎麽用?PHP Application::flush使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Foundation\Application
的用法示例。
在下文中一共展示了Application::flush方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
protected function tearDown()
{
Schema::drop('testing_table');
$this->kernel->call('migrate:rollback');
$this->app->flush();
$this->app = null;
parent::tearDown();
}
示例2: stopApplication
/**
* Stop the application
*
* @return void
*/
public function stopApplication()
{
if ($this->hasApplicationBeenStarted()) {
foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {
call_user_func($callback);
}
$this->app->flush();
$this->app = null;
Facade::clearResolvedInstances();
Facade::setFacadeApplication(null);
}
}
示例3: tearDown
/**
* Clean up the testing environment before the next test.
*
* @return void
*/
public function tearDown()
{
if (class_exists('Mockery')) {
Mockery::close();
}
if ($this->app) {
foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {
call_user_func($callback);
}
$this->app->flush();
$this->app = null;
}
if (property_exists($this, 'serverVariables')) {
$this->serverVariables = [];
}
}
示例4: flush
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
* @static
*/
public static function flush()
{
\Illuminate\Foundation\Application::flush();
}
示例5: tearDown
/**
* Tear down test case.
*/
protected function tearDown()
{
$this->app->flush();
}
示例6: flush
/**
* Flush the container of all bindings and resolved instances.
*
* @return void
*/
public function flush()
{
parent::flush();
$this->hasBeenBootstrapped = false;
}
示例7: tearDownLaravel
/**
* Clean up the testing environment before the next test.
*
* @tearDown
* @return void
*/
public function tearDownLaravel()
{
if ($this->app) {
$this->app->flush();
}
}