コード例 #1
0
 /**
  * @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, '');
 }
コード例 #2
0
 /**
  * @param $fileAsString
  *
  * @return \Audiens\AppnexusClient\entity\UploadJobStatus
  * @throws \Exception
  */
 public function upload($fileAsString)
 {
     return $this->userUpload->upload($this->memberId, $fileAsString);
 }