From 55ed00cd3ca28bd4b6785abff54081587e52aecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Mon, 14 Dec 2020 16:50:10 +0100 Subject: [PATCH] Stop using deprecated trait --- .../Tests/DeprecationErrorHandler/DeprecationTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php index 5c2f282640..f36c689099 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php @@ -15,12 +15,9 @@ 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 $prefixDirsPsr4; @@ -261,7 +258,7 @@ class DeprecationTest extends TestCase rmdir($dir); } - private static function doSetupBeforeClass() + public static function setupBeforeClass(): void { foreach (get_declared_classes() as $class) { if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) { @@ -281,7 +278,7 @@ class DeprecationTest extends TestCase } } - private static function doTearDownAfterClass() + public static function tearDownAfterClass(): void { foreach (self::$prefixDirsPsr4 as [$prop, $loader, $prefixDirsPsr4]) { $prop->setValue($loader, $prefixDirsPsr4);