lithium\tests\cases\net\http\ResponseTest::testToStringPrefersHeadersContentTypeOverType PHP Метод

testToStringPrefersHeadersContentTypeOverType() публичный Метод

    public function testToStringPrefersHeadersContentTypeOverType()
    {
        /* Decide what to do with this */
        return "Is this test correct?";
        $response = new Response();
        $response->headers('Content-Type', 'text/plain');
        $response->type('text/html');
        $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);
    }