lithium\tests\cases\net\http\ResponseTest::testWithoutChunksAndCommentInHtmlRoot PHP Method

testWithoutChunksAndCommentInHtmlRoot() public method

    public function testWithoutChunksAndCommentInHtmlRoot()
    {
        $body = "\n<!doctype html><!-- (c) 1998 - 2012 Tweakers.net B.V. --> \n<html lang=\"nl\"> ";
        $body .= "\n    <head>\n        <title>Simple site</title>\n    </head>";
        $body .= "\n    <body>\n        <h1>Simple site</h1>\n        <p>\n            But awesome";
        $body .= "\n        </p>\n    </body>\n</html>\n";
        $message = $this->_createMessage($body);
        $response = new Response(compact('message'));
        $this->assertEqual(trim($body), $response->body());
    }