Index: src/webservice/tests/IpGeoLocatorTest.php
===================================================================
--- src/webservice/tests/IpGeoLocatorTest.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
+++ src/webservice/tests/IpGeoLocatorTest.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
@@ -0,0 +1,55 @@
+<?php
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+$file = __DIR__ ."/testconfig/testconfig.php";
+require($file);
+require_once($testconfig["webserviceDirectory"] ."/inc/envsetup.php");
+		
+class IpGeoLocatorTest extends PHPUnit_Framework_TestCase
+{
+	/**
+	  * @dataProvider testIpGeoLocator_data
+	  */
+	public function testIpGeoLocator($ip, $result){
+		$errorMessage = "";
+		$location = \SiWeather\Webservice\IpGeoLocator::locate($ip, $errorMessage);
+
+		$this->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;
+	}
+}
+?>
Index: src/webservice/tests/LocationTest.php
===================================================================
--- src/webservice/tests/LocationTest.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
+++ src/webservice/tests/LocationTest.php	(revision db3869689166c7f2f4ad48f564ba1e317cc5e531)
@@ -0,0 +1,106 @@
+<?php
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+$file = __DIR__ ."/testconfig/testconfig.php";
+require($file);
+require($testconfig["webserviceDirectory"] ."/inc/envsetup.php");
+
+class LocationTest extends PHPUnit_Framework_TestCase
+{
+	public function testCity(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$value = "testCity";
+		$location->setCity($value);
+		$this->assertEquals($location->city(), $value);
+	}
+	
+	public function testZipCode(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$value = "12345";
+		$location->setZipCode($value);
+		$this->assertEquals($location->zipCode(), $value);
+	}
+	
+	public function testRegion(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$value1 = "Wallhall";
+		$value2 = "WH";
+		$location->setRegion($value1, $value2);
+		$this->assertEquals($location->regionName(), $value1);
+		$this->assertEquals($location->regionCode(), $value2);
+	}
+	
+	public function testCountry(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$value1 = "Wallhall";
+		$value2 = "WH";
+		$location->setCountry($value1, $value2);
+		$this->assertEquals($location->countryName(), $value1);
+		$this->assertEquals($location->countryCode(), $value2);
+	}
+	
+	public function testLocation(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$latitude = -59.0;
+		$longitude = 33;
+		$location->setLocation($latitude, $longitude);
+		$this->assertEquals($location->latitude(), $latitude);
+		$this->assertEquals($location->longitude(), $longitude);
+		$this->assertEquals($location->locationWKT(), $longitude ." ". $latitude);
+	}
+	
+	public function testTimeZone(){
+		$location = new \SiWeather\Webservice\Location("", "");
+		
+		$value = "Europe/Berlin";
+		$location->setTimeZone($value);
+		$this->assertEquals($location->timeZone(), $value);
+	}
+
+	public function constructor(){
+		$city = "Nice Place";
+		$zipCode = "0001";
+		$regionName = "Nice Region";
+		$regionCode = "NR";
+		$countryName = "Nice Country";
+		$countryCode = "NC";
+		$longitude = 50;
+		$latitude = 20;
+		$location = new \SiWeather\Webservice\Location($city, $zipCode, $regionName,
+													   $regionCode, $countryName, $countryCode,
+													   $latitude, $longitude);
+		
+		$this->assertEquals($location->city(), $city);
+		$this->assertEquals($location->zipCode(), $zipCode);
+		$this->assertEquals($location->regionName(), $regionName);
+		$this->assertEquals($location->regionCode(), $regionCode);
+		$this->assertEquals($location->countryName(), $countryName);
+		$this->assertEquals($location->countryCode(), $countryCode);
+		$this->assertEquals($location->latitude(), $latitude);
+		$this->assertEquals($location->longitude(), $longitude);
+		$this->assertEquals($location->locationWkt(), $longitude ." ". $latitude);
+	}
+}
+?>
