예제 #1
0
 public function testReturnOfResponseDataAsRaw()
 {
     $response = new Response(200, '', '', $this->responseTestData);
     list($statusCode, $headers, $responseRaw) = $response->asRaw();
     $this->assertTrue(is_int($statusCode));
     $this->assertTrue(is_array($headers));
     $this->assertTrue(is_string($responseRaw));
 }
예제 #2
0
 public function testReturnOfResponseDataAsRaw()
 {
     $response = new Response(200, $this->responseTestData);
     $responseRaw = $response->as_raw();
     $this->assertTrue(is_string($responseRaw));
 }