From 9050f676af5f401e0b7468a3645943d95b8a91ff Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 19 Dec 2015 12:10:24 +0100 Subject: [PATCH] [Filesystem] fix tests on 2.3 The test introduced in #16797 used the `assertFilePermissions()` method to test for the expected result. This worked quite well for the PR as it was submitted for the `master` branch. However, the tests now fail on 2.3 as the `FilesystemTestCase` class which contains this method was introduced with Symfony 2.4. --- src/Symfony/Component/Filesystem/Tests/FilesystemTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php index 06b99a25cc..11f453cc8c 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTest.php @@ -492,7 +492,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase $this->filesystem->chmod($directory, 0753, 0000, true); - $this->assertFilePermissions(753, $subdirectory); + $this->assertEquals(753, $this->getFilePermissions($subdirectory)); } public function testChown()