public function testLookupUsual() { $this->object->maxmind = 1; $this->object->maxmindold = 2; $this->object->freegeoip = 3; $this->object->geobytes = 4; $this->object->ipgeobase = 5; $this->object->ipinfo = 5; $this->object->ipapi = 6; $this->object->telize = false; $this->object->setMaxmindOldDb('/var/www/GeoLiteCity.dat'); $this->object->setMaxmindDb('/var/www/GeoLite2-City.mmdb'); // $this->object->isCityRequired = false; //valid ip try { $data = $this->object->lookup('93.73.57.211'); $this->assertInstanceOf('\\GeoServices\\GeoObject', $data); } catch (\GeoServices\GeoException $ex) { var_dump($this->object->getFound()); } }