lithium\tests\cases\action\RequestTest::testRefererLocal PHP Метод

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

public testRefererLocal ( )
    public function testRefererLocal()
    {
        $request = new Request(array('env' => array('HTTP_REFERER' => '/posts/index')));
        $expected = '/posts/index';
        $result = $request->referer('/', true);
        $this->assertEqual($expected, $result);
    }
RequestTest