public function testHasResult()
 {
     $data = ['Response' => ['MetaInfo' => ['Timestamp' => '2014-10-22T09:51:07.327+0000'], 'View' => [0 => ['_type' => 'SearchResultsViewType', 'ViewId' => 0, 'Result' => [0 => ['Relevance' => 1, 'MatchLevel' => 'houseNumber', 'MatchQuality' => ['City' => 1, 'Street' => [0 => 1], 'HouseNumber' => 1, 'PostalCode' => 1], 'MatchType' => 'pointAddress', 'Location' => ['LocationId' => 'NT_oRmNPt9yCrCG4xv1JsisuA_50', 'LocationType' => 'address', 'DisplayPosition' => ['Latitude' => 48.2108917, 'Longitude' => 9.000909800000001], 'NavigationPosition' => [0 => ['Latitude' => 48.2111588, 'Longitude' => 9.0009298]], 'MapView' => ['TopLeft' => ['Latitude' => 48.2120159, 'Longitude' => 8.999222899999999], 'BottomRight' => ['Latitude' => 48.2097676, 'Longitude' => 9.0025967]], 'Address' => ['Label' => 'Kientenstraße 50, 72458 Albstadt, Deutschland', 'Country' => 'DEU', 'State' => 'Baden-Württemberg', 'County' => 'Zollernalbkreis', 'City' => 'Albstadt', 'District' => 'Ebingen', 'Street' => 'Kientenstraße', 'HouseNumber' => '50', 'PostalCode' => '72458', 'AdditionalData' => [0 => ['value' => 'Deutschland', 'key' => 'CountryName'], 1 => ['value' => 'Baden-Württemberg', 'key' => 'StateName']]]]]]]]]];
     $resultExpected = [0 => ['Relevance' => 1, 'MatchLevel' => 'houseNumber', 'MatchQuality' => ['City' => 1, 'Street' => [0 => 1], 'HouseNumber' => 1, 'PostalCode' => 1], 'MatchType' => 'pointAddress', 'Location' => ['LocationId' => 'NT_oRmNPt9yCrCG4xv1JsisuA_50', 'LocationType' => 'address', 'DisplayPosition' => ['Latitude' => 48.2108917, 'Longitude' => 9.000909800000001], 'NavigationPosition' => [0 => ['Latitude' => 48.2111588, 'Longitude' => 9.0009298]], 'MapView' => ['TopLeft' => ['Latitude' => 48.2120159, 'Longitude' => 8.999222899999999], 'BottomRight' => ['Latitude' => 48.2097676, 'Longitude' => 9.0025967]], 'Address' => ['Label' => 'Kientenstraße 50, 72458 Albstadt, Deutschland', 'Country' => 'DEU', 'State' => 'Baden-Württemberg', 'County' => 'Zollernalbkreis', 'City' => 'Albstadt', 'District' => 'Ebingen', 'Street' => 'Kientenstraße', 'HouseNumber' => '50', 'PostalCode' => '72458', 'AdditionalData' => [0 => ['value' => 'Deutschland', 'key' => 'CountryName'], 1 => ['value' => 'Baden-Württemberg', 'key' => 'StateName']]]]]];
     $response = new \spacedealer\here\api\GeoCoderResponse($data);
     $this->assertEquals(['Timestamp' => '2014-10-22T09:51:07.327+0000'], $response->getMetaInfo());
     $this->assertEquals($resultExpected, $response->getResult());
 }
 public function testHasExceptionError()
 {
     $data = ['Details' => 'Request is not valid! (Input parameter validation failed. Geocoder: missing mandatory parameters (at least one of \'country, state, county, city, district, street, housenumber, postalCode\' or \'searchtext\'))', 'AdditionalData' => [], 'type' => 'ApplicationError', 'subtype' => 'InvalidInputData'];
     $response = new GeoCoderResponse($data);
     $this->assertTrue($response->getException());
 }