コード例 #1
0
ファイル: ResponseTest.php プロジェクト: KANU82/guzzle
 /**
  * @covers Guzzle\Http\Message\Response::isRedirect
  */
 public function testIsRedirect()
 {
     $response = new Response(301);
     $this->assertTrue($response->isRedirect());
     $response = new Response(200);
     $this->assertFalse($response->isRedirect());
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function isRedirect()
 {
     return $this->response->isRedirect();
 }