Skip to content

Commit 2201c8f

Browse files
committed
chore: mark ensureKernelShutdown as @afterclass
1 parent a467f50 commit 2201c8f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ protected static function createKernel(array $options = []): KernelInterface
112112

113113
/**
114114
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
115+
* @afterClass
115116
*/
116-
protected static function ensureKernelShutdown()
117+
public static function ensureKernelShutdown()
117118
{
118119
if (null !== static::$kernel) {
119120
static::$kernel->boot();
@@ -132,14 +133,4 @@ protected static function ensureKernelShutdown()
132133
}
133134
}
134135
}
135-
136-
/**
137-
* Ensures the Kernel is shut down after all tests in the class have run.
138-
*
139-
* @afterClass
140-
*/
141-
public static function ensureKernelShutdownAfterClass(): void
142-
{
143-
static::ensureKernelShutdown();
144-
}
145136
}

0 commit comments

Comments
 (0)