We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df8e51 commit 35a2a54Copy full SHA for 35a2a54
Test/KernelTestCase.php
@@ -11,6 +11,7 @@
11
12
namespace Symfony\Bundle\FrameworkBundle\Test;
13
14
+use PHPUnit\Framework\Attributes\AfterClass;
15
use PHPUnit\Framework\TestCase;
16
use Symfony\Component\DependencyInjection\Container;
17
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -120,8 +121,11 @@ protected static function createKernel(array $options = []): KernelInterface
120
121
122
/**
123
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
124
+ *
125
+ * @afterClass
126
*/
- protected static function ensureKernelShutdown()
127
+ #[AfterClass]
128
+ public static function ensureKernelShutdown()
129
{
130
if (null !== static::$kernel) {
131
static::$kernel->boot();
0 commit comments