File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Filesystem \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Bridge \PhpUnit \ForwardCompatTestTrait ;
15
16
use Symfony \Component \Filesystem \Filesystem ;
16
17
17
18
class FilesystemTestCase extends TestCase
18
19
{
20
+ use ForwardCompatTestTrait;
21
+
19
22
private $ umask ;
20
23
21
24
protected $ longPathNamesWindows = [];
@@ -40,7 +43,7 @@ class FilesystemTestCase extends TestCase
40
43
*/
41
44
private static $ symlinkOnWindows = null ;
42
45
43
- public static function setUpBeforeClass ()
46
+ private static function doSetUpBeforeClass ()
44
47
{
45
48
if ('\\' === \DIRECTORY_SEPARATOR ) {
46
49
self ::$ linkOnWindows = true ;
@@ -69,7 +72,7 @@ public static function setUpBeforeClass()
69
72
}
70
73
}
71
74
72
- protected function setUp ()
75
+ private function doSetUp ()
73
76
{
74
77
$ this ->umask = umask (0 );
75
78
$ this ->filesystem = new Filesystem ();
@@ -78,7 +81,7 @@ protected function setUp()
78
81
$ this ->workspace = realpath ($ this ->workspace );
79
82
}
80
83
81
- protected function tearDown ()
84
+ private function doTearDown ()
82
85
{
83
86
if (!empty ($ this ->longPathNamesWindows )) {
84
87
foreach ($ this ->longPathNamesWindows as $ path ) {
You can’t perform that action at this time.
0 commit comments