public function vfsStreamAbstractContentTestCase::executePermissionsForUser in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php \org\bovigo\vfs\vfsStreamAbstractContentTestCase::executePermissionsForUser()
@test @group permissions @group bug_15
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamAbstractContentTestCase.php, line 93
Class
Namespace
org\bovigo\vfsCode
public function executePermissionsForUser() {
$abstractContent = new TestvfsStreamAbstractContent('foo', 0100);
$this
->assertFalse($abstractContent
->isReadable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isReadable(-1, vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isReadable(-1, -1));
$this
->assertFalse($abstractContent
->isWritable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isWritable(-1, vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isWritable(-1, -1));
$this
->assertTrue($abstractContent
->isExecutable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isExecutable(-1, vfsStream::getCurrentGroup()));
$this
->assertFalse($abstractContent
->isExecutable(-1, -1));
}