public function vfsStreamWrapperTestCase::is_readable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php \org\bovigo\vfs\vfsStreamWrapperTestCase::is_readable()
assert is_readable() works correct
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperTestCase.php, line 155
Class
Namespace
org\bovigo\vfsCode
public function is_readable() {
$this
->assertTrue(is_readable($this->fooURL));
$this
->assertTrue(is_readable($this->fooURL . '/.'));
$this
->assertTrue(is_readable($this->barURL));
$this
->assertTrue(is_readable($this->barURL . '/.'));
$this
->assertTrue(is_readable($this->baz1URL));
$this
->assertTrue(is_readable($this->baz2URL));
$this
->assertFalse(is_readable($this->fooURL . '/another'));
$this
->assertFalse(is_readable(vfsStream::url('another')));
$this->foo
->chmod(0222);
$this
->assertFalse(is_readable($this->fooURL));
$this->baz1
->chmod(0222);
$this
->assertFalse(is_readable($this->baz1URL));
}