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