File tree 1 file changed +2
-5
lines changed
src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Bridge \PhpUnit \DeprecationErrorHandler ;
16
16
use Symfony \Bridge \PhpUnit \DeprecationErrorHandler \Deprecation ;
17
17
use Symfony \Bridge \PhpUnit \Legacy \SymfonyTestsListenerForV5 ;
18
- use Symfony \Bridge \PhpUnit \SetUpTearDownTrait ;
19
18
20
19
class DeprecationTest extends TestCase
21
20
{
22
- use SetUpTearDownTrait;
23
-
24
21
private static $ vendorDir ;
25
22
private static $ prefixDirsPsr4 ;
26
23
@@ -261,7 +258,7 @@ private static function removeDir($dir)
261
258
rmdir ($ dir );
262
259
}
263
260
264
- private static function doSetupBeforeClass ()
261
+ public static function setupBeforeClass (): void
265
262
{
266
263
foreach (get_declared_classes () as $ class ) {
267
264
if ('C ' === $ class [0 ] && 0 === strpos ($ class , 'ComposerAutoloaderInit ' )) {
@@ -281,7 +278,7 @@ private static function doSetupBeforeClass()
281
278
}
282
279
}
283
280
284
- private static function doTearDownAfterClass ()
281
+ public static function tearDownAfterClass (): void
285
282
{
286
283
foreach (self ::$ prefixDirsPsr4 as [$ prop , $ loader , $ prefixDirsPsr4 ]) {
287
284
$ prop ->setValue ($ loader , $ prefixDirsPsr4 );
You can’t perform that action at this time.
0 commit comments