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); }
/** * {@inheritDoc} */ protected function post($path, array $parameters = array(), $requestOptions = array()) { return $this->client->post($path, $parameters, $requestOptions); }