public function testAnonymousIp() { $reader = new Reader('maxmind-db/test-data/GeoIP2-Anonymous-IP-Test.mmdb'); $ipAddress = '1.2.0.1'; $record = $reader->anonymousIp($ipAddress); $this->assertSame(true, $record->isAnonymous); $this->assertSame(true, $record->isAnonymousVpn); $this->assertSame(false, $record->isHostingProvider); $this->assertSame(false, $record->isPublicProxy); $this->assertSame(false, $record->isTorExitNode); $this->assertEquals($ipAddress, $record->ipAddress); $reader->close(); }