Skip to content

Commit 78ec64d

Browse files
Make tests support phpunit 8
1 parent 70adda0 commit 78ec64d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Tests/FilesystemTestCase.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
namespace Symfony\Component\Filesystem\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
use Symfony\Component\Filesystem\Filesystem;
1617

1718
class FilesystemTestCase extends TestCase
1819
{
20+
use ForwardCompatTestTrait;
21+
1922
private $umask;
2023

2124
protected $longPathNamesWindows = [];
@@ -40,7 +43,7 @@ class FilesystemTestCase extends TestCase
4043
*/
4144
private static $symlinkOnWindows = null;
4245

43-
public static function setUpBeforeClass()
46+
private static function doSetUpBeforeClass()
4447
{
4548
if ('\\' === \DIRECTORY_SEPARATOR) {
4649
self::$linkOnWindows = true;
@@ -69,7 +72,7 @@ public static function setUpBeforeClass()
6972
}
7073
}
7174

72-
protected function setUp()
75+
private function doSetUp()
7376
{
7477
$this->umask = umask(0);
7578
$this->filesystem = new Filesystem();
@@ -78,7 +81,7 @@ protected function setUp()
7881
$this->workspace = realpath($this->workspace);
7982
}
8083

81-
protected function tearDown()
84+
private function doTearDown()
8285
{
8386
if (!empty($this->longPathNamesWindows)) {
8487
foreach ($this->longPathNamesWindows as $path) {

0 commit comments

Comments
 (0)