You are here

public function vfsStreamWrapperTestCase::chownDoesNotWorkOnVfsStreamUrls 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::chownDoesNotWorkOnVfsStreamUrls()

@test @group issue_11 @group permissions

File

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

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function chownDoesNotWorkOnVfsStreamUrls() {
  if (version_compare(phpversion(), '5.4.0', '<')) {
    $this
      ->assertFalse(@chown($this->fooURL, vfsStream::OWNER_USER_2));
    $this
      ->assertEquals(vfsStream::getCurrentUser(), fileowner($this->fooURL));
  }
}