Commit 5c767e5d by Alexander Makarov

Better Windows detection

parent 92c64994
...@@ -143,7 +143,7 @@ class FileHelperTest extends TestCase ...@@ -143,7 +143,7 @@ class FileHelperTest extends TestCase
*/ */
public function testCopyDirectoryPermissions() public function testCopyDirectoryPermissions()
{ {
if (substr(PHP_OS, 0, 3) == 'WIN') { if (DIRECTORY_SEPARATOR === '\\') {
$this->markTestSkipped("Can't reliably test it on Windows because fileperms() always return 0777."); $this->markTestSkipped("Can't reliably test it on Windows because fileperms() always return 0777.");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment