Beispiel #1
0
 function test_setup()
 {
     parent::test_setup();
     $this->failure = new GeoLoc();
     $this->failure->success = false;
     $this->multi_geocoder = new MultiGeocoder();
     $this->multi_geocoder->geocoders->provider_order = array('google', 'yahoo', 'ca');
 }
Beispiel #2
0
 function test_setup()
 {
     parent::test_setup();
     $this->success->provider = "hostip";
     $this->ip_failure = "Country: (Private Address) (XX)\n" . "City: (Private Address)\nLatitude: \nLongitude: ";
     $this->ip_success = "Country: UNITED STATES (US)\n" . "City: Sugar Grove, IL\nLatitude: 41.7696\nLongitude: -88.4588";
     $this->ip_unicoded = "Country: FINLAND (FI)\n" . "City: Malmgård\nLatitude: 60.55\nLongitude: 25.95";
 }
Beispiel #3
0
 function test_setup()
 {
     parent::test_setup();
     $this->yahoo_full_addr = trim($this->yahoo_full_addr);
     $this->yahoo_full_hash = array('street_address' => "100 Spear St", 'city' => "San Francisco", 'state' => "CA", 'zip' => "94105-1578", 'country_code' => "US");
     $this->yahoo_city_hash = array('city' => "San Francisco", 'state' => "CA");
     $this->yahoo_full_loc = new GeoLoc($this->yahoo_full_hash);
     $this->yahoo_city_loc = new GeoLoc($this->yahoo_city_hash);
 }
Beispiel #4
0
 function test_setup()
 {
     parent::test_setup();
     $this->us_full_addr = array('street_address' => '100 Spear St', 'city' => "San Francisco", 'state' => "CA");
     $this->us_full_loc = new GeoLoc($this->us_full_addr);
 }