public function testItReturnsContactData() { $expectedResponse = $this->createExpectedResponse('getContactData'); $this->httpClient->expects($this->once())->method('send')->willReturn($expectedResponse); $response = $this->client->getContactData(array()); $this->assertInstanceOf('\\Snowcap\\Emarsys\\Response', $response); }