コード例 #1
0
ファイル: HttpResponseTest.php プロジェクト: weew/http
 public function test_is_redirect()
 {
     $response = new HttpResponse();
     $this->assertFalse($response->isRedirect());
     $response->setStatusCode(HttpStatusCode::PERMANENTLY_REDIRECT);
     $this->assertTrue($response->isRedirect());
 }