/** * @test */ public function upload_will_throw_an_exception_if_the_file_string_is_empty() { $client = $this->prophesize(Auth::class); $userUpload = new UserUpload($client->reveal()); $this->expectException(UploadException::class); $userUpload->upload(123456, ''); }
/** * @param $fileAsString * * @return \Audiens\AppnexusClient\entity\UploadJobStatus * @throws \Exception */ public function upload($fileAsString) { return $this->userUpload->upload($this->memberId, $fileAsString); }