コード例 #1
0
ファイル: HttpContextTest.php プロジェクト: elgervb/php-http
 public function testGetResponse()
 {
     $response = $this->object->getResponse();
     $this->assertTrue($response instanceof HttpResponse);
     $this->assertTrue($response === $this->object->getResponse(), "Check for Singleton");
 }
コード例 #2
0
ファイル: APIException.php プロジェクト: bemyguest/sdk-php
 /**
  * The HTTP response body from the API request
  * @return mixed
  */
 public function getResponseBody()
 {
     return $this->context->getResponse()->getRawBody();
 }