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());
 }
 /**
  * Test for correct status response handling
  */
 public function testEmptyResult()
 {
     $data = ['Response' => ['MetaInfo' => ['Timestamp' => '2014-10-22T12:23:11.006+0000'], 'View' => []]];
     $response = new GeoCoderResponse($data);
     $metaInfo = $response->getMetaInfo();
     $this->assertEquals(['Timestamp' => '2014-10-22T12:23:11.006+0000'], $metaInfo);
     $resultInfo = $response->getResult();
     $this->assertEquals(null, $resultInfo);
 }