/**
  * @test
  * @depends it_should_find_contact_by_id
  * @param ContactResponse $contactResponse
  */
 public function it_should_count_contacts_by_id(ContactResponse $contactResponse)
 {
     // todo request does not work for cURL
     if (!$this->proxy instanceof Native) {
         $this->assertTrue(true);
         return;
     }
     $actionContactList = $this->contactsFactory->actionContactCount();
     $id = $contactResponse->getId();
     $result = $actionContactList->setIds(array($id))->execute();
     $this->assertInstanceOf('\\SMSApi\\Api\\Response\\Contacts\\SizeResponse', $result);
     $this->assertEquals(1, $result->getSize());
 }
예제 #2
0
 protected function response($data)
 {
     return ContactResponse::fromJsonString($data);
 }