Skip to content

Commit 9e475b6

Browse files
Revert "bug #30084 Fix KernelTestCase compatibility for PhpUnit 8 (alexander-schranz)"
This reverts commit a36dc51, reversing changes made to db445c4.
1 parent bb54e40 commit 9e475b6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ protected static function createKernel(array $options = [])
208208
}
209209

210210
/**
211-
* @after
212-
*
213211
* Shuts the kernel down if it was used in the test.
214212
*/
215213
protected static function ensureKernelShutdown()
@@ -222,4 +220,12 @@ protected static function ensureKernelShutdown()
222220
}
223221
}
224222
}
223+
224+
/**
225+
* Clean up Kernel usage in this test.
226+
*/
227+
protected function tearDown()
228+
{
229+
static::ensureKernelShutdown();
230+
}
225231
}

0 commit comments

Comments
 (0)