Skip to content

Commit fe8367b

Browse files
Revert "bug #60564 [FrameworkBundle] ensureKernelShutdown in tearDownAfterClass (cquintana92)"
This reverts commit ec76ab4f28454ebfbcf14287b2aac1351f00df79, reversing changes made to bc886008906f022a8fbf9796b943af928b64d86c.
1 parent 35a2a54 commit fe8367b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Test/KernelTestCase.php

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

1212
namespace Symfony\Bundle\FrameworkBundle\Test;
1313

14-
use PHPUnit\Framework\Attributes\AfterClass;
1514
use PHPUnit\Framework\TestCase;
1615
use Symfony\Component\DependencyInjection\Container;
1716
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -121,11 +120,8 @@ protected static function createKernel(array $options = []): KernelInterface
121120

122121
/**
123122
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
124-
*
125-
* @afterClass
126123
*/
127-
#[AfterClass]
128-
public static function ensureKernelShutdown()
124+
protected static function ensureKernelShutdown()
129125
{
130126
if (null !== static::$kernel) {
131127
static::$kernel->boot();

0 commit comments

Comments
 (0)