public function testSimpleRender() { $resp = new Response('##content##'); $this->assertEquals('##content##', $resp->content); $out = $resp->render(); $this->assertEquals(0, strpos($out, 'HTTP/1.1 200 OK')); $this->assertNotEquals(false, strpos($out, '##content##')); $out = $resp->render(false); // no body, good for HEAD requests $this->assertEquals(0, strpos($out, 'HTTP/1.1 200 OK')); $this->assertEquals(false, strpos($out, '##content##')); }