本文整理汇总了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();
}
}