/** * @test */ public function getShouldConfigureHeaders() { $client = new Client($this->httpClient); $this->httpClient->expects($this->once())->method('get')->with('/test?name=Test', null, ['verify' => false])->willReturn($this->request); $this->assertInstanceOf('SimpleXMLElement', $client->get('/test?name=Test')); }
/** * @param string $resource * @param array $params * * @return SimpleXMLElement */ protected function get($resource, array $params = []) { return $this->client->get($this->credentials->getWsUrl($resource, $params)); }