minor #17071 [Filesystem] fix tests on 2.3 (Christian Flothmann)

This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem] fix tests on 2.3

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16797
| License       | MIT
| Doc PR        |

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.

Commits
-------

9050f67 [Filesystem] fix tests on 2.3
This commit is contained in:
Fabien Potencier 2015-12-20 20:57:55 +01:00
commit 36a514181f

View File

@ -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()