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