assertInternalType("object", $location, $errorMessage); $this->assertTrue(empty($errorMessagE)); $this->assertEquals($location->city(), $result->city()); $this->assertEquals($location->zipCode(), $result->zipCode()); $this->assertEquals($location->regionName(), $result->regionName()); $this->assertEquals($location->regionCode(), $result->regionCode()); $this->assertEquals($location->countryName(), $result->countryName()); $this->assertEquals($location->countryCode(), $result->countryCode()); $this->assertEquals($location->latitude(), $result->latitude()); $this->assertEquals($location->longitude(), $result->longitude()); $this->assertEquals($location->locationWkt(), $result->locationWkt()); } public function testIpGeoLocator_data(){ $result = array(); $result[] = array("5.9.73.171", new \SiWeather\Webservice\Location("", "", "", "", "Germany", "DE", 51, 9, "")); $result[] = array("173.194.113.168", new \SiWeather\Webservice\Location("Mountain View", "94043", "California", "CA", "United States", "US", 37.419, -122.058)); return $result; } } ?>