You are here

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

@test @group issue_107 @requires PHP 5.4 @since 1.5.0

File

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

Class

PermissionsTestCase
Test for permissions related functionality.

Namespace

org\bovigo\vfs

Code

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