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