You are here

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

@test @group issue_107 @expectedException PHPUnit_Framework_Error @expectedExceptionMessage Can not create new file in non-writable path root @requires PHP 5.4 @since 1.5.0

File

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

Class

PermissionsTestCase
Test for permissions related functionality.

Namespace

org\bovigo\vfs

Code

public function touchOnNonWriteableDirectoryTriggersError() {
  $this->root
    ->chmod(0555);
  touch($this->root
    ->url() . '/touch.txt');
}