File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
use Symfony \Cmf \Component \Testing \Functional \DbManager \PhpcrDecorator ;
18
18
use Symfony \Component \DependencyInjection \ContainerInterface ;
19
19
use Symfony \Component \HttpFoundation \Response ;
20
+ use Symfony \Component \HttpKernel \KernelInterface ;
20
21
21
22
/**
22
23
* The base class for Functional and Web tests.
@@ -80,12 +81,15 @@ public function getContainer()
80
81
/**
81
82
* Ensures the kernel is available.
82
83
*
83
- * @return \Symfony\Component\HttpKernel\ KernelInterface
84
+ * @return KernelInterface
84
85
*/
85
86
public function getKernel ()
86
87
{
87
88
if (null === self ::$ kernel ) {
88
- self ::$ kernel = parent ::bootKernel ();
89
+ $ kernel = parent ::bootKernel ();
90
+ if ($ kernel instanceof KernelInterface) {
91
+ self ::$ kernel = $ kernel ;
92
+ }
89
93
}
90
94
if (!self ::$ kernel ->getContainer ()) {
91
95
self ::$ kernel ->boot ();
You can’t perform that action at this time.
0 commit comments