Skip to content

Commit 983d5b6

Browse files
Merge branch '7.2' into 7.3
* 7.2: [Validator] review cs tran Fix building packages in the CI implicitly run all Composer commands non-interactively [TypeInfo] Handle `key-of` and `value-of` types [PhpUnitBridge] Skip bootstrap for PHPUnit >=10 [FrameworkBundle] ensureKernelShutdown in tearDownAfterClass
2 parents 5df58fd + 7ebc121 commit 983d5b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Test/KernelTestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Test;
1313

14+
use PHPUnit\Framework\Attributes\AfterClass;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\DependencyInjection\Container;
1617
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
@@ -112,8 +113,11 @@ protected static function createKernel(array $options = []): KernelInterface
112113

113114
/**
114115
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
116+
*
117+
* @afterClass
115118
*/
116-
protected static function ensureKernelShutdown()
119+
#[AfterClass]
120+
public static function ensureKernelShutdown()
117121
{
118122
if (null !== static::$kernel) {
119123
static::$kernel->boot();

0 commit comments

Comments
 (0)