/**
  * test setClient and getClient
  */
 public function testSetClient()
 {
     $this->emarsysConnection->setClient($this->clientMock);
     $this->assertEquals($this->clientMock, $this->emarsysConnection->getClient());
 }
 /**
  * Add a contact to an existing contactlist
  *
  * @param integer $listId          Id of the contactlist
  * @param string  $keyId           Id field of the contact
  * @param array   $contactKeyValue Id field value of the contact
  *
  * @return bool True if the contact was successfully added or was already added, false otherwise
  */
 public function addContactToContactlist($listId, $keyId, $contactKeyValue)
 {
     $params = array('list_id' => $listId, 'key_id' => $keyId, 'external_ids' => array($contactKeyValue));
     $emarsysResponse = $this->emarsysConnection->executeCommand('addContactsToContactlist', $params);
     return !$emarsysResponse->hasErrors();
 }