/** * Test Engine::checkIp and assert true */ public function test_check_ip_return_false() { $this->assertFalse($this->engine->checkIp('108.13.245.63', json_decode($this->get_ip_file_contents(), true))); }
/** * Is the remote IP string (IPv4 - e.g. 192.168.0.1) in the Tor list? * * @param string $remoteIp * @return boolean */ public function isTor($remoteIp) { return $this->engine->checkIp($remoteIp, json_decode($this->storage->read(), true)); }