You are here

public function PermissionsTestCase::canNotChangeGroupWhenDirectoryNotWriteable 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::canNotChangeGroupWhenDirectoryNotWriteable()

@test @group issue_52

File

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

Class

PermissionsTestCase
Test for permissions related functionality.

Namespace

org\bovigo\vfs

Code

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