You are here

public function PermissionsTestCase::canNotChangeOwnerWhenDirectoryNotWriteable in Zircon Profile 8

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

@test @group issue_52

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/PermissionsTestCase.php, line 56

Class

PermissionsTestCase
Test for permissions related functionality.

Namespace

org\bovigo\vfs

Code

public function canNotChangeOwnerWhenDirectoryNotWriteable() {
  $this->root
    ->getChild('test_directory')
    ->chmod(0444);
  $this
    ->assertFalse(@chown(vfsStream::url('root/test_directory/test.file'), vfsStream::OWNER_USER_2));
}