Skip to content

Commit

Permalink
shutdown application before creating a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed May 13, 2018
1 parent 4403b7d commit 4c8029e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Bridge/Laravel4/Laravel4RequestExecutioner.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function __construct(Laravel4TestContextInterface $context)

private function refreshApplication()
{
if(!is_null($this->app)) {
$this->app->shutdown();
}

$this->app = $this->context->createApplication();

$this->client = new \Illuminate\Foundation\Testing\Client($this->app);
Expand Down

0 comments on commit 4c8029e

Please sign in to comment.