Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 35a2a54

Browse filesBrowse files
committed
[FrameworkBundle] ensureKernelShutdown in tearDownAfterClass
1 parent 9df8e51 commit 35a2a54
Copy full SHA for 35a2a54

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎Test/KernelTestCase.php

Copy file name to clipboardExpand all lines: Test/KernelTestCase.php
+5-1Lines 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\ContainerInterface;
@@ -120,8 +121,11 @@ protected static function createKernel(array $options = []): KernelInterface
120121

121122
/**
122123
* Shuts the kernel down if it was used in the test - called by the tearDown method by default.
124+
*
125+
* @afterClass
123126
*/
124-
protected static function ensureKernelShutdown()
127+
#[AfterClass]
128+
public static function ensureKernelShutdown()
125129
{
126130
if (null !== static::$kernel) {
127131
static::$kernel->boot();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.