File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/Test Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \Test ;
13
13
14
+ use PHPUnit \Framework \Attributes \AfterClass ;
14
15
use PHPUnit \Framework \TestCase ;
15
16
use Symfony \Component \DependencyInjection \Container ;
16
17
use Symfony \Component \DependencyInjection \ContainerInterface ;
@@ -120,8 +121,11 @@ protected static function createKernel(array $options = []): KernelInterface
120
121
121
122
/**
122
123
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
124
+ *
125
+ * @afterClass
123
126
*/
124
- protected static function ensureKernelShutdown ()
127
+ #[AfterClass]
128
+ public static function ensureKernelShutdown ()
125
129
{
126
130
if (null !== static ::$ kernel ) {
127
131
static ::$ kernel ->boot ();
You can’t perform that action at this time.
0 commit comments