[Filesystem] Fix tests on windows

This commit is contained in:
Jordi Boggiano 2013-04-25 14:07:50 +02:00
parent 7b83b7221a
commit e8b07a0787
1 changed files with 5 additions and 1 deletions

View File

@ -905,7 +905,11 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->assertFileExists($filename);
$this->assertSame('bar', file_get_contents($filename));
$this->assertEquals(753, $this->getFilePermissions($filename));
// skip mode check on windows
if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this->assertEquals(753, $this->getFilePermissions($filename));
}
}
public function testDumpFileOverwritesAnExistingFile()