/** * @expectedException Stalxed\FileSystem\Exception\PathNotFoundException */ public function testControl_UnknownPath() { $fileinfo = new FileInfo($this->storage->getPath('nonexistent_directory/nonexistent.file')); $fileinfo->control(); }