public function UnlinkTestCase::unlinkNonExistingFileTriggersError in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/UnlinkTestCase.php \org\bovigo\vfs\UnlinkTestCase::unlinkNonExistingFileTriggersError()
@test @since 1.4.0 @group issue_68
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ UnlinkTestCase.php, line 49
Class
- UnlinkTestCase
- Test for unlink() functionality.
Namespace
org\bovigo\vfsCode
public function unlinkNonExistingFileTriggersError() {
vfsStream::setup();
try {
$this
->assertFalse(unlink('vfs://root/foo.txt'));
} catch (\PHPUnit_Framework_Error $fe) {
$this
->assertEquals('unlink(vfs://root/foo.txt): No such file or directory', $fe
->getMessage());
}
}