File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ abstract class KernelTestCase extends TestCase
4444 private function doTearDown ()
4545 {
4646 static ::ensureKernelShutdown ();
47+ static ::$ class = null ;
4748 static ::$ kernel = null ;
4849 static ::$ booted = false ;
4950 }
Original file line number Diff line number Diff line change @@ -44,4 +44,22 @@ public function testThatPrivateServicesAreAvailableIfTestConfigIsEnabled()
4444 $ this ->assertTrue (static ::$ container ->has ('private_service ' ));
4545 $ this ->assertFalse (static ::$ container ->has (UnusedPrivateService::class));
4646 }
47+
48+ /**
49+ * @doesNotPerformAssertions
50+ */
51+ public function testBootKernel ()
52+ {
53+ static ::bootKernel (['test_case ' => 'TestServiceContainer ' ]);
54+ }
55+
56+ /**
57+ * @depends testBootKernel
58+ */
59+ public function testKernelIsNotInitialized ()
60+ {
61+ self ::assertNull (self ::$ class );
62+ self ::assertNull (self ::$ kernel );
63+ self ::assertFalse (self ::$ booted );
64+ }
4765}
You can’t perform that action at this time.
0 commit comments