[Filesystem] Fix tests on windows

This commit is contained in:
Jordi Boggiano 2013-04-25 14:07:50 +02:00
parent 7b83b7221a
commit e8b07a0787

View File

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