You are here

public function vfsStreamWrapperTestCase::unlinkReturnsFalseWhenFileDoesNotExist in Zircon Profile 8

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

@test @group issue_49

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php, line 107

Class

vfsStreamWrapperTestCase
Test for org\bovigo\vfs\vfsStreamWrapper.

Namespace

org\bovigo\vfs

Code

public function unlinkReturnsFalseWhenFileDoesNotExist() {
  vfsStream::setup()
    ->addChild(vfsStream::newFile('foo.blubb'));
  $this
    ->assertFalse(@unlink(vfsStream::url('foo.blubb2')));
}