File tree 2 files changed +19
-0
lines changed
src/Symfony/Bundle/FrameworkBundle
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ abstract class KernelTestCase extends TestCase
47
47
protected function tearDown (): void
48
48
{
49
49
static ::ensureKernelShutdown ();
50
+ static ::$ class = null ;
50
51
static ::$ kernel = null ;
51
52
static ::$ booted = false ;
52
53
}
Original file line number Diff line number Diff line change @@ -41,4 +41,22 @@ public function testThatPrivateServicesAreAvailableIfTestConfigIsEnabled()
41
41
$ this ->assertTrue ($ container ->has ('private_service ' ));
42
42
$ this ->assertFalse ($ container ->has (UnusedPrivateService::class));
43
43
}
44
+
45
+ /**
46
+ * @doesNotPerformAssertions
47
+ */
48
+ public function testBootKernel (): void
49
+ {
50
+ static ::bootKernel (['test_case ' => 'TestServiceContainer ' ]);
51
+ }
52
+
53
+ /**
54
+ * @depends testBootKernel
55
+ */
56
+ public function testKernelIsNotInitialized (): void
57
+ {
58
+ self ::assertNull (self ::$ class );
59
+ self ::assertNull (self ::$ kernel );
60
+ self ::assertFalse (self ::$ booted );
61
+ }
44
62
}
You can’t perform that action at this time.
0 commit comments