lithium\tests\cases\action\RequestTest::testRefererNotLocal PHP Method

testRefererNotLocal() public method

public testRefererNotLocal ( )
    public function testRefererNotLocal()
    {
        $request = new Request(array('env' => array('HTTP_REFERER' => 'http://lithium.com/posts/index', 'HTTP_HOST' => 'foo.com')));
        $result = $request->referer('/');
        $this->assertEqual('http://lithium.com/posts/index', $result);
    }
RequestTest