Skip to content

Commit

Permalink
fix for Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Dec 1, 2012
1 parent df981f0 commit e6892c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/framework/utils/CFileHelperTest.php
Expand Up @@ -52,6 +52,10 @@ public function testGetMimeTypeByExtension()

public function testCopyDirectory_subDir_modeShoudBe0775()
{
if (substr(PHP_OS, 0, 3) == 'WIN') {
$this->markTestSkipped("Can't reliably test it on Windows because fileperms() always return 0777.");
}

$this->createTestStruct($this->testDir);
$src = $this->testDir . DIRECTORY_SEPARATOR . $this->rootDir1;
$dst = $this->testDir . DIRECTORY_SEPARATOR . $this->rootDir2;
Expand All @@ -64,6 +68,10 @@ public function testCopyDirectory_subDir_modeShoudBe0775()

public function testCopyDirectory_subDir_modeShoudBe0777()
{
if (substr(PHP_OS, 0, 3) == 'WIN') {
$this->markTestSkipped("Can't reliably test it on Windows because fileperms() always return 0777.");
}

$this->createTestStruct($this->testDir);
$src = $this->testDir . DIRECTORY_SEPARATOR . $this->rootDir1;
$dst = $this->testDir . DIRECTORY_SEPARATOR . $this->rootDir2;
Expand Down

0 comments on commit e6892c6

Please sign in to comment.