Skip to content

Fix CI issues with Symfony kernel #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/SymfonyMocks/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class Kernel
{
private $bundlesInitialized = false;
private $containerInitialized = false;
private $container;
private $bundles;

public function __construct($env, $debug)
{
Expand All @@ -18,11 +20,13 @@ public function __construct($env, $debug)
public function initializeBundles()
{
$this->bundlesInitialized = true;
$this->bundles = [];
}

public function initializeContainer()
{
$this->containerInitialized = true;
$this->container = new Container();
}

public function getBundles()
Expand All @@ -31,7 +35,7 @@ public function getBundles()
throw new \Exception('Bundles not initialized');
}

return [];
return $this->bundles;
}

public function getContainer()
Expand All @@ -40,7 +44,7 @@ public function getContainer()
throw new \Exception('Container not initialized');
}

return new Container();
return $this->container;
}

public function handle(Request $request)
Expand Down