Skip to content

Commit 57bb368

Browse files
Merge branch '3.4' into 4.3
* 3.4: Remove use of ForwardCompatTrait Remove deprecated methods assertArraySubset
2 parents 421af5e + ea51409 commit 57bb368

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Tests/FilesystemTest.php

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

1212
namespace Symfony\Component\Filesystem\Tests;
1313

14-
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
15-
1614
/**
1715
* Test class for Filesystem.
1816
*/
1917
class FilesystemTest extends FilesystemTestCase
2018
{
21-
use ForwardCompatTestTrait;
22-
2319
public function testCopyCreatesNewFile()
2420
{
2521
$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) {

0 commit comments

Comments
 (0)