You are here

public function vfsStreamWrapperTestCase::fileownerIsCurrentUserByDefault in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php \org\bovigo\vfs\vfsStreamWrapperTestCase::fileownerIsCurrentUserByDefault()

@test @group permissions

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 283

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function fileownerIsCurrentUserByDefault() {
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->fooURL));
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->fooURL . '/.'));
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->barURL));
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->barURL . '/.'));
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->baz1URL));
  $this
    ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->baz2URL));
}