/**
  * @test
  */
 public function geItemsWillReturnArray()
 {
     $from = new \DateTime('yesterday');
     $to = new \DateTime('today');
     $groupBy = ['segment'];
     $dataUsage = $this->client->dataUsage()->get(SANDBOX_DATA_PROVIDER_ID, $from, $to, $groupBy);
     $this->assertInternalType('array', $dataUsage);
 }
 /**
  * @test
  */
 public function geItemsWillReturnArrayOfDataProviderAudiences()
 {
     $from = new \DateTime('last monday');
     $to = new \DateTime('last tuesday');
     $groupBy = ['segment'];
     $dataProviderAudiences = $this->client->dataProviderAudience()->get(SANDBOX_DATA_PROVIDER_ID, $from, $to, $groupBy);
     $this->assertInternalType('array', $dataProviderAudiences);
     list($dataProviderAudience) = $dataProviderAudiences;
     $this->assertInstanceOf(DataProviderAudience::class, $dataProviderAudience);
 }
 /**
  * @test
  */
 public function deleteWillThrowApiException()
 {
     $this->setExpectedException('Audiens\\AdForm\\Exception\\ApiException');
     $category = new Category();
     $this->client->categories()->delete($category);
 }
 /**
  * @test
  */
 public function deleteWillThrowApiException()
 {
     $this->setExpectedException('Audiens\\AdForm\\Exception\\ApiException');
     $segment = new Segment();
     $this->client->segments()->delete($segment);
 }