private function checkServerResponse(CustomAudienceMultiKey $ca, array $users, array $schema, $is_hashed, $is_normalized)
 {
     $add = $ca->addUsers($users, $schema, $is_hashed, $is_normalized);
     $this->assertClusterChangesResponse($ca, $users, $add);
     $remove = $ca->removeUsers($users, $schema, $is_hashed, $is_normalized);
     $this->assertClusterChangesResponse($ca, $users, $remove);
 }
 public function testMultikeyCustomAudiences()
 {
     $ca = new CustomAudienceMultiKey(null, $this->getConfig()->accountId);
     $ca->{CustomAudienceFields::NAME} = $this->getConfig()->testRunId;
     $ca->{CustomAudienceFields::SUBTYPE} = CustomAudienceSubtypes::CUSTOM;
     $ca->create();
     $users = array(array('fname', 'lname', '*****@*****.**'), array('fname_new', 'lname_new', '*****@*****.**'));
     $schema = array(CustomAudienceMultikeySchemaFields::FIRST_NAME, CustomAudienceMultikeySchemaFields::LAST_NAME, CustomAudienceMultikeySchemaFields::EMAIL);
     $is_hashed = false;
     $is_normalized = false;
     $add = $ca->addUsers($users, $schema, $is_hashed, $is_normalized);
     $this->assertClusterChangesResponse($ca, $users, $add);
     $remove = $ca->removeUsers($users, $schema, $is_hashed, $is_normalized);
     $this->assertClusterChangesResponse($ca, $users, $remove);
     $ca->delete();
 }