Esempio n. 1
0
 /**
  * Test that a false is returned on an "allow" with
  * 	no match
  */
 public function testEvaluateAllowNoMatch()
 {
     $_SERVER['REMOTE_ADDR'] = '192.168.1.1';
     $config = array('ALLOW' => array('10.0.*'));
     $ip = new Ip($config);
     $this->assertFalse($ip->evaluate());
 }