From cacb503294b654d23a997643d7db586d05aca172 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 5 Feb 2020 19:46:15 +0100 Subject: [PATCH] [Bridge/PhpUnit] fix compat with recent versions of phpunit --- .../Tests/DeprecationErrorHandler/DeprecationTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php index 17638e458e..f4b418961c 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php @@ -16,9 +16,12 @@ use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\DeprecationErrorHandler; use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Deprecation; use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerForV5; +use Symfony\Bridge\PhpUnit\SetUpTearDownTrait; class DeprecationTest extends TestCase { + use SetUpTearDownTrait; + private static $vendorDir; private static function getVendorDir() @@ -275,7 +278,7 @@ class DeprecationTest extends TestCase rmdir($dir); } - public static function tearDownAfterClass() + private static function doTearDownAfterClass() { self::removeDir(self::getVendorDir().'/myfakevendor'); }