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

testToStringDoesNotAddContentTypeHeaderOnTextHtml() public method

    public function testToStringDoesNotAddContentTypeHeaderOnTextHtml()
    {
        $response = new Response();
        $expected = "HTTP/1.1 200 OK\r\n\r\n\r\n";
        $result = (string) $response;
        $this->assertEqual($expected, $result);
        /* Decide what to do with this */
        return "Is this test correct?";
        $response = new Response();
        $response->type('text/html');
        $expected = "HTTP/1.1 200 OK\r\n\r\n\r\n";
        $result = (string) $response;
        $this->assertEqual($expected, $result);
        $response = new Response();
        $response->type('text/plain');
        $expected = "HTTP/1.1 200 OK\r\nContent-Type: text/plain;charset=UTF-8\r\n\r\n";
        $result = (string) $response;
        $this->assertEqual($expected, $result);
    }