/** * @test * @depends it_should_find_contact_by_first_name * @param ContactResponse $contactResponse */ public function it_should_find_contact_by_last_name(ContactResponse $contactResponse) { // todo request does not work for cURL if (!$this->proxy instanceof Native) { $this->assertTrue(true); return $contactResponse; } $actionContactList = $this->contactsFactory->actionContactList(); $lastName = $contactResponse->getLastName(); $result = $actionContactList->setLastName($lastName)->execute(); $this->assertInstanceOf('\\SMSApi\\Api\\Response\\Contacts\\ContactsResponse', $result); $this->assertEquals(1, $result->getSize()); $collection = $result->getCollection(); $this->assertEquals($lastName, $collection[0]->getLastName()); return $contactResponse; }