/** * @test */ public function it_should_return_array_of_contact_responses() { $someContacts = $this->createContacts(); $testedObject = new ContactsResponse($someContacts); $result = $testedObject->getCollection(); $this->assertInstanceOf('SMSApi\\Api\\Response\\Contacts\\ContactResponse', $result[0]); }
protected function response($data) { return ContactsResponse::fromJsonString($data); }