setDirectory(vfsStream::url('exampleDir')); $this->assertEquals(0700, vfsStreamWrapper::getRoot()->getChild('id')->getPermissions()); } /** * test that the directory is created */ public function testDirectoryIsCreatedWithGivenPermissions() { $example = new FilemodeExample('id', 0755); $example->setDirectory(vfsStream::url('exampleDir')); $this->assertEquals(0755, vfsStreamWrapper::getRoot()->getChild('id')->getPermissions()); } } ?>