Skip to content

Commit 443b983

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Stopwatch] Fix test expectation [SecurityBundle] fix autoconfiguring Monolog's ProcessorInterface KernelTestCase resets internal state on tearDown [HttpKernel] Fix extracting controller name from closures [Intl] fix wrong offset timezone PHP 8.1 Fix type binding Remove duplicated test Make document type nodes ignorable Initialize Symfony\Component\Security\Core\Exception\AccountStatusException:: property
2 parents 2c5e62c + c3aaed5 commit 443b983

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Test/KernelTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ abstract class KernelTestCase extends TestCase
4747
protected function tearDown(): void
4848
{
4949
static::ensureKernelShutdown();
50+
static::$class = null;
5051
static::$kernel = null;
5152
static::$booted = false;
5253
}

Tests/Functional/TestServiceContainerTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,22 @@ public function testThatPrivateServicesAreAvailableIfTestConfigIsEnabled()
5050
$this->assertTrue(static::$container->has('private_service'));
5151
$this->assertFalse(static::$container->has(UnusedPrivateService::class));
5252
}
53+
54+
/**
55+
* @doesNotPerformAssertions
56+
*/
57+
public function testBootKernel()
58+
{
59+
static::bootKernel(['test_case' => 'TestServiceContainer']);
60+
}
61+
62+
/**
63+
* @depends testBootKernel
64+
*/
65+
public function testKernelIsNotInitialized()
66+
{
67+
self::assertNull(self::$class);
68+
self::assertNull(self::$kernel);
69+
self::assertFalse(self::$booted);
70+
}
5371
}

0 commit comments

Comments
 (0)