/** * @dataProvider observableFilesystemManagerProvider */ public function testApiSetPublic_ThrowsException_WhenFsDoesNotExist(FilesystemManagerInterface $man, ObjectProphecy $p1, ObjectProphecy $p2) { $this->setExpectedException(WriteException::class); $man->setPublic('not_fs://path'); }