public function printResponse()
    {
        $request = $this->request;
        $response = $this->response;

        echo sprintf(
            "%s %s => %d:\n%s",
            $request->getMethod(),
            (string) ($request instanceof RequestInterface ? $request->getUri() : $request->getUrl()),
            $response->getStatusCode(),
            (string) $response->getBody()
        );
    }
public function printResponse()
    {
        $request = $this->request;
        $response = $this->response;

        echo sprintf(
            "%s %s => %d:\n%s",
            $request->getMethod(),
            (string) ($request instanceof RequestInterface ? $request->getUri() : $request->getUrl()),
            $response->getStatusCode(),
            (string) $response->getBody()
        );
    }
public function printResponse ( ) { $ request = $ this -> request ; $ response = $ this -> response ; echo sprintf ( "%s %s => %d:\n%s" , $ request -> getMethod ( ) , ( string ) ( $ request instanceof RequestInterface ? $ request -> getUri ( ) : $ request -> getUrl ( ) ) , $ response -> getStatusCode ( ) , ( string ) $ response -> getBody ( ) ) ; }
Prints last response body.

@Then print response
Prints last response body .