From 83a56a0cbebb4cef1e55abd906643ab87f3d9bab Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Thu, 7 Feb 2019 09:56:45 +0100 Subject: [PATCH] Fix phpunit 8 compatibility --- .../Bundle/FrameworkBundle/Test/KernelTestCase.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php index 0feb15380e1c..02737b391288 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php @@ -208,6 +208,8 @@ protected static function createKernel(array $options = []) } /** + * @after + * * Shuts the kernel down if it was used in the test. */ protected static function ensureKernelShutdown() @@ -220,12 +222,4 @@ protected static function ensureKernelShutdown() } } } - - /** - * Clean up Kernel usage in this test. - */ - protected function tearDown() - { - static::ensureKernelShutdown(); - } }