Esempio n. 1
0
    public function testExtractBodyCorrectlyFromResponse()
    {
        $response = new Http\Response("A\r\n\r\nB\r\n\r\nC");

        $this->assertEquals("B\r\n\r\nC", $response->getBody());
    }
Esempio n. 2
0
 public function __construct(Response $response)
 {
     $this->message = $response->getBody();
 }
Esempio n. 3
0
    public function assertStatusCode($expected, \Congow\Orient\Http\Response $got)
    {
        $message = "The status code of the response is wrong";

        return $this->assertEquals($expected, $got->getStatusCode(), $got->getBody());
    }