PopTest\Http\ResponseTest::testOutput PHP Метод

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

public testOutput ( )
    public function testOutput()
    {
        $r = new Response(200, array('Content-Type' => 'text/plain'));
        $r->setBody('This is a test.');
        $response = $r->getHeadersAsString() . PHP_EOL . $r->getBody();
        $this->assertContains('HTTP/1.1 200 OK', $response);
        $this->assertContains('Content-Type: text/plain', $response);
        $this->assertContains('This is a test', $response);
    }