/** * Stops the application. */ private function stopApplication() { if ($this->application) { $this->application->flush(); $this->application = null; } }
/** * Clean up the testing environment before the next test. * * @return void */ public function tearDown() { if (class_exists('Mockery')) { Mockery::close(); } if ($this->app) { $this->app->flush(); $this->app = null; } }
/** * 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; } }
/** * Flush the container of all bindings and resolved instances. * * @return void * @static */ public static function flush() { //Method inherited from \Illuminate\Container\Container \Laravel\Lumen\Application::flush(); }