Skip to content
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