spec\Ikwattro\GuzzleStereo\Formatter\ResponseFormatterSpec::it_should_format_a_response_to_array PHP Метод

it_should_format_a_response_to_array() публичный Метод

    function it_should_format_a_response_to_array()
    {
        $response = new Response(200);
        $format = ['code' => $response->getStatusCode(), 'headers' => $response->getHeaders(), 'body' => (string) $response->getBody()];
        $this->formatResponse($response)->shouldEqual($format);
    }