|
@@ -150,4 +150,15 @@ abstract class WebTestCase extends BaseWebTestCase
|
|
|
isset($options['debug']) ? $options['debug'] : true
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Shuts the kernel down if it was used in the test
|
|
|
+ */
|
|
|
+ protected function tearDown()
|
|
|
+ {
|
|
|
+ if ($this->kernel !== null && $this->kernel->isBooted())
|
|
|
+ {
|
|
|
+ $this->kernel->shutdown();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|