Sanpi\Behatch\Context\RestContext::iSendARequestTo PHP Method

iSendARequestTo() public method

Sends a HTTP request
public iSendARequestTo ( $method, $url, Behat\Gherkin\Node\PyStringNode $body = null, $files = [] )
$body Behat\Gherkin\Node\PyStringNode
    public function iSendARequestTo($method, $url, PyStringNode $body = null, $files = [])
    {
        return $this->request->send($method, $this->locatePath($url), [], $files, $body !== null ? $body->getRaw() : null);
    }