Skip to content

Commit

Permalink
Stop using deprecated trait
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Dec 14, 2020
1 parent a0a4d0b commit 0dd9bd5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Tests/DeprecationErrorHandler/DeprecationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
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;

Expand Down Expand Up @@ -261,7 +258,7 @@ private static function removeDir($dir)
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')) {
Expand All @@ -281,7 +278,7 @@ private static function doSetupBeforeClass()
}
}

private static function doTearDownAfterClass()
public static function tearDownAfterClass(): void
{
foreach (self::$prefixDirsPsr4 as [$prop, $loader, $prefixDirsPsr4]) {
$prop->setValue($loader, $prefixDirsPsr4);
Expand Down

0 comments on commit 0dd9bd5

Please sign in to comment.