Example #1
0
 /**
  * Stops the application.
  */
 private function stopApplication()
 {
     if ($this->application) {
         $this->application->flush();
         $this->application = null;
     }
 }
Example #2
0
 /**
  * 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;
     }
 }
Example #3
0
 /**
  * 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();
 }