Skip to content

Commit

Permalink
Merge 0ce4275 into 9a4524b
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-donat committed May 10, 2014
2 parents 9a4524b + 0ce4275 commit 95126c0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/VirtualFileSystem/WrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1209,4 +1209,18 @@ public function testTouchNotAllowedIfNotOwnerOrNotWritable()
'Allowed to touch if not owner but with write permission'
);
}

public function testIsExecutableReturnsCorrectly()
{
$fs = new FileSystem();
$file = $fs->createFile('/file');

chmod($fs->path('/file'), 0000);

$this->assertFalse(is_executable($fs->path('/file')));

chmod($fs->path('/file'), 0777);

$this->assertTrue(is_executable($fs->path('/file')));
}
}

0 comments on commit 95126c0

Please sign in to comment.