setMethod() public method

Set request method.
public setMethod ( string $method )
$method string Can be GET, POST, PATCH, ...
Ejemplo n.º 1
0
 /**
  * @When I create a :type request to :resource (url)
  */
 public function createRequest($type, $resource)
 {
     $this->restDriver->setMethod($type);
     $this->restDriver->setResource($this->changeMappedValuesOnUrl($resource));
     $this->responseObject = null;
 }