Elgg\Http\OkResponseTest::testCanConstructWithArguments PHP Метод

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

    public function testCanConstructWithArguments()
    {
        $content = 'foo';
        $status_code = ELGG_HTTP_PARTIAL_CONTENT;
        $forward_url = REFERRER;
        $test_class = $this->class;
        $response = new $test_class($content, $status_code, $forward_url);
        $this->assertEquals($content, $response->getContent());
        $this->assertEquals($status_code, $response->getStatusCode());
        $this->assertEquals($forward_url, $response->getForwardURL());
        $this->assertEquals([], $response->getHeaders());
    }