We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3ad79 commit 531b653Copy full SHA for 531b653
src/BaseBundleTestCase.php
@@ -80,7 +80,11 @@ protected function createKernel()
80
public function ensureKernelShutdown()
81
{
82
if (null !== $this->kernel) {
83
- $container = $this->kernel->getContainer();
+ try {
84
+ $container = $this->kernel->getContainer();
85
+ } catch (\LogicException $e) {
86
+ $container = null;
87
+ }
88
$this->kernel->shutdown();
89
if ($container instanceof ResettableContainerInterface) {
90
$container->reset();
0 commit comments