You are here

public function vfsStreamWrapperMkDirTestCase::alwaysResolvesRootDirectoryAsOwnParentWithDoubleDot in Zircon Profile 8

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

@test @group bug_115

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php, line 417

Class

vfsStreamWrapperMkDirTestCase
Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().

Namespace

org\bovigo\vfs

Code

public function alwaysResolvesRootDirectoryAsOwnParentWithDoubleDot() {
  vfsStreamWrapper::getRoot()
    ->chown(vfsStream::OWNER_USER_1);
  $this
    ->assertTrue(is_dir(vfsStream::url('foo/..')));
  $stat = stat(vfsStream::url('foo/..'));
  $this
    ->assertEquals(vfsStream::OWNER_USER_1, $stat['uid']);
}