Example #1
0
 public function testIsExecutable()
 {
     $this->root->addChild(vfsStream::newFile('executable.txt', 0111));
     $this->root->addChild(vfsStream::newFile('not_executable.txt', 00));
     $file1 = new File(vfsStream::url('root/executable.txt'));
     $this->assertTrue($file1->isExecutable());
     $file2 = new File(vfsStream::url('root/not_executable.txt'));
     $this->assertFalse($file2->isExecutable());
 }