You are here

public function vfsStreamWrapperFileTestCase::file_put_contentsNonExistingFileNonWritableDirectory in Zircon Profile 8

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

@test @group permissions @group bug_15

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php, line 105

Class

vfsStreamWrapperFileTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function file_put_contentsNonExistingFileNonWritableDirectory() {
  vfsStreamWrapper::register();
  vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 00));
  $this
    ->assertFalse(@file_put_contents(vfsStream::url('root/new.txt'), 'This does not work.'));
  $this
    ->assertFalse(file_exists(vfsStream::url('root/new.txt')));
}