You are here

public function vfsStreamAbstractContentTestCase::readAndExecutePermissionsForOther in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php \org\bovigo\vfs\vfsStreamAbstractContentTestCase::readAndExecutePermissionsForOther()

@test @group permissions @group bug_15

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamAbstractContentTestCase.php, line 737

Class

vfsStreamAbstractContentTestCase
Test for org\bovigo\vfs\vfsStreamAbstractContent.

Namespace

org\bovigo\vfs

Code

public function readAndExecutePermissionsForOther() {
  $abstractContent = new TestvfsStreamAbstractContent('foo', 05);
  $this
    ->assertFalse($abstractContent
    ->isReadable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()));
  $this
    ->assertFalse($abstractContent
    ->isReadable(-1, vfsStream::getCurrentGroup()));
  $this
    ->assertTrue($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
    ->assertFalse($abstractContent
    ->isExecutable(vfsStream::getCurrentUser(), vfsStream::getCurrentGroup()));
  $this
    ->assertFalse($abstractContent
    ->isExecutable(-1, vfsStream::getCurrentGroup()));
  $this
    ->assertTrue($abstractContent
    ->isExecutable(-1, -1));
}