File tree 2 files changed +6
-2
lines changed
src/Symfony/Bundle/FrameworkBundle/Test
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,17 @@ protected static function getKernelClass()
138
138
* Boots the Kernel for this test.
139
139
*
140
140
* @param array $options
141
+ *
142
+ * @return KernelInterface A KernelInterface instance
141
143
*/
142
144
protected static function bootKernel (array $ options = array ())
143
145
{
144
146
static ::ensureKernelShutdown ();
145
147
146
148
static ::$ kernel = static ::createKernel ($ options );
147
149
static ::$ kernel ->boot ();
150
+
151
+ return static ::$ kernel ;
148
152
}
149
153
150
154
/**
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ abstract class WebTestCase extends KernelTestCase
30
30
*/
31
31
protected static function createClient (array $ options = array (), array $ server = array ())
32
32
{
33
- static ::bootKernel ($ options );
33
+ $ kernel = static ::bootKernel ($ options );
34
34
35
- $ client = static :: $ kernel ->getContainer ()->get ('test.client ' );
35
+ $ client = $ kernel ->getContainer ()->get ('test.client ' );
36
36
$ client ->setServerParameters ($ server );
37
37
38
38
return $ client ;
You can’t perform that action at this time.
0 commit comments