Skip to content

Commit ea51409

Browse files
committed
Remove use of ForwardCompatTrait
1 parent d7ca582 commit ea51409

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Tests/FilesystemTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111

1212
namespace Symfony\Component\Filesystem\Tests;
1313

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1514

1615
/**
1716
* Test class for Filesystem.
1817
*/
1918
class FilesystemTest extends FilesystemTestCase
2019
{
21-
use ForwardCompatTestTrait;
22-
2320
public function testCopyCreatesNewFile()
2421
{
2522
$sourceFilePath = $this->workspace.\DIRECTORY_SEPARATOR.'copy_source_file';

Tests/FilesystemTestCase.php

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

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Filesystem\Filesystem;
1716

1817
class FilesystemTestCase extends TestCase
1918
{
20-
use ForwardCompatTestTrait;
21-
2219
private $umask;
2320

2421
protected $longPathNamesWindows = [];
@@ -43,7 +40,7 @@ class FilesystemTestCase extends TestCase
4340
*/
4441
private static $symlinkOnWindows = null;
4542

46-
private static function doSetUpBeforeClass()
43+
public static function setUpBeforeClass()
4744
{
4845
if ('\\' === \DIRECTORY_SEPARATOR) {
4946
self::$linkOnWindows = true;
@@ -72,7 +69,7 @@ private static function doSetUpBeforeClass()
7269
}
7370
}
7471

75-
private function doSetUp()
72+
protected function setUp()
7673
{
7774
$this->umask = umask(0);
7875
$this->filesystem = new Filesystem();
@@ -81,7 +78,7 @@ private function doSetUp()
8178
$this->workspace = realpath($this->workspace);
8279
}
8380

84-
private function doTearDown()
81+
protected function tearDown()
8582
{
8683
if (!empty($this->longPathNamesWindows)) {
8784
foreach ($this->longPathNamesWindows as $path) {

Tests/LockHandlerTest.php

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

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1615
use Symfony\Component\Filesystem\Exception\IOException;
1716
use Symfony\Component\Filesystem\Filesystem;
1817
use Symfony\Component\Filesystem\LockHandler;
@@ -22,8 +21,6 @@
2221
*/
2322
class LockHandlerTest extends TestCase
2423
{
25-
use ForwardCompatTestTrait;
26-
2724
public function testConstructWhenRepositoryDoesNotExist()
2825
{
2926
$this->expectException('Symfony\Component\Filesystem\Exception\IOException');

0 commit comments

Comments
 (0)