Example #1
0
 public function testIsReadable()
 {
     $this->root->addChild(vfsStream::newFile('readable.txt', 0444));
     $this->root->addChild(vfsStream::newFile('not_readable.txt', 00));
     $file1 = new File(vfsStream::url('root/readable.txt'));
     $this->assertTrue($file1->isReadable());
     $file2 = new File(vfsStream::url('root/not_readable.txt'));
     $this->assertFalse($file2->isReadable());
 }