PopTest\Geo\GeoTest::testGetHostInfo PHP Method

testGetHostInfo() public method

public testGetHostInfo ( )
    public function testGetHostInfo()
    {
        if (function_exists('geoip_db_get_all_info')) {
            $g = new Geo(array('host' => 'www.google.com'));
            $info = $g->getHostInfo();
            $this->assertTrue(is_array($info));
        }
    }