コード例 #1
0
ファイル: ResponseTest.php プロジェクト: rawebone/wilson
 function testHtml()
 {
     $response = new Response();
     $response->html("ABC");
     $this->assertEquals(200, $response->getStatus());
     $this->assertEquals("ABC", $response->getBody());
     $this->assertEquals("text/html", $response->getHeader("Content-Type"));
     $response->html("DEF", 404, array("Content-Type" => "text/xhtml"));
     $this->assertEquals(404, $response->getStatus());
     $this->assertEquals("DEF", $response->getBody());
     $this->assertEquals("text/xhtml", $response->getHeader("Content-Type"));
 }