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

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

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