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