Skip to content

Commit d6cda54

Browse files
committed
[Filesystem] Fix tests on windows
1 parent edc1bc3 commit d6cda54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/FilesystemTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,11 @@ public function testDumpFile()
905905

906906
$this->assertFileExists($filename);
907907
$this->assertSame('bar', file_get_contents($filename));
908-
$this->assertEquals(753, $this->getFilePermissions($filename));
908+
909+
// skip mode check on windows
910+
if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
911+
$this->assertEquals(753, $this->getFilePermissions($filename));
912+
}
909913
}
910914

911915
public function testDumpFileOverwritesAnExistingFile()

0 commit comments

Comments
 (0)