Example #1
0
 public function testGet()
 {
     $path = '/some/path';
     $parameters = array('a' => 'b');
     $options = array('c' => 'd');
     $httpClient = $this->getHttpClientMock();
     $httpClient->expects($this->once())->method('get')->with($path, $parameters, $options);
     $client = new Client($httpClient);
     $client->get($path, $parameters, $options);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 protected function get($path, array $parameters = array(), $requestOptions = array())
 {
     return $this->client->get($path, $parameters, $requestOptions);
 }