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
44
44
private function doTearDown ()
45
45
{
46
46
static ::ensureKernelShutdown ();
47
+ static ::$ class = null ;
47
48
static ::$ kernel = null ;
48
49
static ::$ booted = false ;
49
50
}
Original file line number Diff line number Diff line change @@ -44,4 +44,22 @@ public function testThatPrivateServicesAreAvailableIfTestConfigIsEnabled()
44
44
$ this ->assertTrue (static ::$ container ->has ('private_service ' ));
45
45
$ this ->assertFalse (static ::$ container ->has (UnusedPrivateService::class));
46
46
}
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
+ }
47
65
}
You can’t perform that action at this time.
0 commit comments