/** * @expectedException \InvalidArgumentException */ public function testSetVisibilityToThrowInvalidArgumentException() { $this->root->addChild(new vfsStreamDirectory('copy')); $dir = $this->root->getChild('copy'); $this->files->setVisibility($dir->url(), 'exception'); }