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

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

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