public function testResponse() { $content = 'HTML Content'; $response = new Response($content); $this->assertEquals('no-cache', $response->getHeaderLine('Cache-Control')); $this->assertEquals('text/html;charset=UTF-8', $response->getHeaderLine('Content-Type')); $this->assertEquals(29, strlen($response->getHeaderLine('Date'))); $this->assertEquals($content, $response->getParsedBody()); }