Gc\User\VisitorTest::testGetVisitorId PHP Method

testGetVisitorId() public method

Test
public testGetVisitorId ( ) : void
return void
    public function testGetVisitorId()
    {
        $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (X11; Linux x86_64; ' . 'rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11';
        $_SERVER['HTTP_ACCEPT_CHARSET'] = null;
        $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en-us,en;q=0.5';
        $_SERVER['SERVER_ADDR'] = '127.0.0.1';
        $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
        $_SERVER['REQUEST_URI'] = '/test';
        $_SERVER['HTTP_REFERER'] = '/';
        $this->assertInternalType('integer', (int) $this->object->getVisitorId('9135ejnhfiebe6u85qhmas7k12'));
    }