Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed tests for 64bit platforms

  • Loading branch information...
commit c9b0839fcb6189788ce8c612f514aa4c108f610a 1 parent 45d7e8d
@izimobil izimobil authored
Showing with 362 additions and 1,450 deletions.
  1. +41 −41 tests/test_children.phpt
  2. +21 −21 tests/test_cities.phpt
  3. +1 −1  tests/test_countrycode.phpt
  4. +1 −1  tests/test_countryinfo.phpt
  5. +1 −1  tests/test_countrysubdivision.phpt
  6. +9 −9 tests/test_earthquakes.phpt
  7. +3 −3 tests/test_findnearby.phpt
  8. +3 −3 tests/test_findnearbyplacename.phpt
  9. +11 −11 tests/test_findnearbypostalcodes.phpt
  10. +1 −1  tests/test_findnearbystreets.phpt
  11. +3 −3 tests/test_findnearestaddress.phpt
  12. +3 −3 tests/test_findnearestintersection.phpt
  13. +3 −3 tests/test_get.phpt
  14. +3 −3 tests/test_gtopo30.phpt
  15. +77 −1,165 tests/test_hierarchy.phpt
  16. +1 −1  tests/test_neighbourhood.phpt
  17. +11 −11 tests/test_neighbours.phpt
  18. +1 −1  tests/test_other_01.phpt
  19. +1 −1  tests/test_other_02.phpt
  20. +1 −1  tests/test_other_03.phpt
  21. +1 −1  tests/test_other_04.phpt
  22. +1 −1  tests/test_other_05.phpt
  23. +1 −1  tests/test_other_06.phpt
  24. +1 −1  tests/test_other_07.phpt
  25. +1 −1  tests/test_postalcodecountryinfo.phpt
  26. +3 −3 tests/test_postalcodelookup.phpt
  27. +5 −5 tests/test_postalcodesearch.phpt
  28. +5 −5 tests/test_search.phpt
  29. +99 −99 tests/test_siblings.phpt
  30. +3 −3 tests/test_srtm3.phpt
  31. +2 −2 tests/test_timezone.phpt
  32. +41 −41 tests/test_wikipediaboundingbox.phpt
  33. +3 −3 tests/test_wikipediasearch.phpt
View
82 tests/test_children.phpt
@@ -13,7 +13,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -22,14 +22,14 @@ Array
[adminCode1] => 01
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 13.75
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 4
[name] => Abruzzo
[fcode] => ADM1
[geonameId] => 3183560
- [lat] => 42.25
+ [lat] => %s
[population] => 0
[adminName1] => Abruzzo
)
@@ -40,14 +40,14 @@ Array
[adminCode1] => 19
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 7.25
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 1
[name] => Aosta Valley
[fcode] => ADM1
[geonameId] => 3164857
- [lat] => 45.75
+ [lat] => %s
[population] => 0
[adminName1] => Aosta Valley
)
@@ -58,14 +58,14 @@ Array
[adminCode1] => 13
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 16.25
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 5
[name] => Apulia
[fcode] => ADM1
[geonameId] => 3169778
- [lat] => 41.25
+ [lat] => %s
[population] => 4021957
[adminName1] => Apulia
)
@@ -76,14 +76,14 @@ Array
[adminCode1] => 02
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 16.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 2
[name] => Basilicate
[fcode] => ADM1
[geonameId] => 3182306
- [lat] => 40.5
+ [lat] => %s
[population] => 582337
[adminName1] => Basilicate
)
@@ -94,14 +94,14 @@ Array
[adminCode1] => 03
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 16.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 5
[name] => Calabria
[fcode] => ADM1
[geonameId] => 2525468
- [lat] => 39
+ [lat] => %s
[population] => 0
[adminName1] => Calabria
)
@@ -112,14 +112,14 @@ Array
[adminCode1] => 04
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 14.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 5
[name] => Campania
[fcode] => ADM1
[geonameId] => 3181042
- [lat] => 41
+ [lat] => %s
[population] => 5766975
[adminName1] => Campania
)
@@ -130,14 +130,14 @@ Array
[adminCode1] => 06
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 13
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 4
[name] => Friuli
[fcode] => ADM1
[geonameId] => 3176525
- [lat] => 46
+ [lat] => %s
[population] => 1188675
[adminName1] => Friuli
)
@@ -148,14 +148,14 @@ Array
[adminCode1] => 07
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 12.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 5
[name] => Latium
[fcode] => ADM1
[geonameId] => 3174976
- [lat] => 42
+ [lat] => %s
[population] => 5501631
[adminName1] => Latium
)
@@ -166,14 +166,14 @@ Array
[adminCode1] => 08
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 8.8333333
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 4
[name] => Liguria
[fcode] => ADM1
[geonameId] => 3174725
- [lat] => 44.5
+ [lat] => %s
[population] => 1557777
[adminName1] => Liguria
)
@@ -184,14 +184,14 @@ Array
[adminCode1] => 09
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 9.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 11
[name] => Lombardy
[fcode] => ADM1
[geonameId] => 3174618
- [lat] => 45.6666667
+ [lat] => %s
[population] => 9387203
[adminName1] => Lombardy
)
@@ -202,14 +202,14 @@ Array
[adminCode1] => 12
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 8
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 8
[name] => Piedmont
[fcode] => ADM1
[geonameId] => 3170831
- [lat] => 45
+ [lat] => %s
[population] => 4294081
[adminName1] => Piedmont
)
@@ -220,14 +220,14 @@ Array
[adminCode1] => 05
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 11
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 9
[name] => Regione Emilia-Romagna
[fcode] => ADM1
[geonameId] => 3177401
- [lat] => 44.75
+ [lat] => %s
[population] => 4115321
[adminName1] => Emilia-Romagna
)
@@ -238,14 +238,14 @@ Array
[adminCode1] => 11
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 14.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 2
[name] => Regione Molise
[fcode] => ADM1
[geonameId] => 3173222
- [lat] => 41.6666667
+ [lat] => %s
[population] => 324508
[adminName1] => Molise
)
@@ -256,14 +256,14 @@ Array
[adminCode1] => 14
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 9
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 8
[name] => Sardinia
[fcode] => ADM1
[geonameId] => 2523228
- [lat] => 40
+ [lat] => %s
[population] => 0
[adminName1] => Sardinia
)
@@ -274,14 +274,14 @@ Array
[adminCode1] => 15
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 14.25
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 9
[name] => Sicily
[fcode] => ADM1
[geonameId] => 2523119
- [lat] => 37.75
+ [lat] => %s
[population] => 5135871
[adminName1] => Sicily
)
@@ -292,14 +292,14 @@ Array
[adminCode1] => 10
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 13.25
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 4
[name] => The Marches
[fcode] => ADM1
[geonameId] => 3174004
- [lat] => 43.5
+ [lat] => %s
[population] => 1501401
[adminName1] => The Marches
)
@@ -310,14 +310,14 @@ Array
[adminCode1] => 17
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 11.3333333
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 2
[name] => Trentino-Alto Adige
[fcode] => ADM1
[geonameId] => 3165244
- [lat] => 46.5
+ [lat] => %s
[population] => 961848
[adminName1] => Trentino-Alto Adige
)
@@ -328,14 +328,14 @@ Array
[adminCode1] => 16
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 11
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 10
[name] => Tuscany
[fcode] => ADM1
[geonameId] => 3165361
- [lat] => 43.4166667
+ [lat] => %s
[population] => 3573454
[adminName1] => Tuscany
)
@@ -346,14 +346,14 @@ Array
[adminCode1] => 18
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 12.5
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 2
[name] => Umbria
[fcode] => ADM1
[geonameId] => 3165048
- [lat] => 43
+ [lat] => %s
[population] => 864496
[adminName1] => Umbria
)
@@ -364,14 +364,14 @@ Array
[adminCode1] => 20
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 11.75
+ [lng] => %s
[fcodeName] => first-order administrative division
[fcl] => A
[numberOfChildren] => 7
[name] => Veneto
[fcode] => ADM1
[geonameId] => 3164604
- [lat] => 45.5
+ [lat] => %s
[population] => 4697774
[adminName1] => Veneto
)
View
42 tests/test_cities.phpt
@@ -17,7 +17,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -28,10 +28,10 @@ Array
[fclName] => city, village,...
[name] => Mexico City
[wikipedia] => en.wikipedia.org/wiki/Mexico_City
- [lng] => -99.1386111
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 3530597
- [lat] => 19.4341667
+ [lat] => %s
[population] => 11285654
)
@@ -43,10 +43,10 @@ Array
[fclName] => city, village,...
[name] => Manila
[wikipedia] =>
- [lng] => 120.9822222
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1701668
- [lat] => 14.6041667
+ [lat] => %s
[population] => 10444527
)
@@ -58,10 +58,10 @@ Array
[fclName] => city, village,...
[name] => Dhaka
[wikipedia] => en.wikipedia.org/wiki/Dhaka
- [lng] => 90.4086111
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1185241
- [lat] => 23.7230556
+ [lat] => %s
[population] => 10356500
)
@@ -73,10 +73,10 @@ Array
[fclName] => city, village,...
[name] => Seoul
[wikipedia] => en.wikipedia.org/wiki/Seoul
- [lng] => 126.9997222
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1835848
- [lat] => 37.5663889
+ [lat] => %s
[population] => 10349312
)
@@ -88,10 +88,10 @@ Array
[fclName] => city, village,...
[name] => Jakarta
[wikipedia] => en.wikipedia.org/wiki/Jakarta
- [lng] => 106.8294444
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1642911
- [lat] => -6.1744444
+ [lat] => %s
[population] => 8540121
)
@@ -103,10 +103,10 @@ Array
[fclName] => city, village,...
[name] => Tokyo
[wikipedia] => en.wikipedia.org/wiki/Tokyo
- [lng] => 139.691677094
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1850147
- [lat] => 35.6895265931
+ [lat] => %s
[population] => 8336599
)
@@ -118,10 +118,10 @@ Array
[fclName] => city, village,...
[name] => Taipei
[wikipedia] => en.wikipedia.org/wiki/Taipei
- [lng] => 121.525
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1668341
- [lat] => 25.0391667
+ [lat] => %s
[population] => 7871900
)
@@ -133,10 +133,10 @@ Array
[fclName] => city, village,...
[name] => Beijing
[wikipedia] => en.wikipedia.org/wiki/Beijing
- [lng] => 116.397228241
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1816670
- [lat] => 39.9074977414
+ [lat] => %s
[population] => 7480601
)
@@ -148,10 +148,10 @@ Array
[fclName] => city, village,...
[name] => Bogotá
[wikipedia] => en.wikipedia.org/wiki/Bogot%C3%A1
- [lng] => -74.0833333
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 3688689
- [lat] => 4.6
+ [lat] => %s
[population] => 7102602
)
@@ -163,10 +163,10 @@ Array
[fclName] => city, village,...
[name] => Hong Kong
[wikipedia] =>
- [lng] => 114.150073528
+ [lng] => %s
[fcode] => PPLC
[geonameId] => 1819729
- [lat] => 22.284013601
+ [lat] => %s
[population] => 7012738
)
View
2  tests/test_countrycode.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[distance] => 0
View
2  tests/test_countryinfo.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
View
2  tests/test_countrysubdivision.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[distance] => 0
View
18 tests/test_earthquakes.phpt
@@ -18,51 +18,51 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
(
[eqid] => 2007byar
[magnitude] => 6.1
- [lng] => -14.8688
+ [lng] => %s
[src] => us
[datetime] => 2007-05-04 12:06:52
[depth] => 10
- [lat] => -1.5226
+ [lat] => %s
)
[1] => stdClass Object
(
[eqid] => 2007atai
[magnitude] => 5.1
- [lng] => -13.3787
+ [lng] => %s
[src] => us
[datetime] => 2007-04-04 00:56:53
[depth] => 10
- [lat] => -3.3167
+ [lat] => %s
)
[2] => stdClass Object
(
[eqid] => vaap
[magnitude] => 5.2
- [lng] => -14.839
+ [lng] => %s
[src] => us
[datetime] => 2006-11-13 08:53:58
[depth] => 10
- [lat] => -12.539
+ [lat] => %s
)
[3] => stdClass Object
(
[eqid] => pzai
[magnitude] => 5.4
- [lng] => -13.385
+ [lng] => %s
[src] => us
[datetime] => 2006-07-10 07:21:38
[depth] => 10
- [lat] => -11.649
+ [lat] => %s
)
)
View
6 tests/test_findnearby.phpt
@@ -17,7 +17,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -26,14 +26,14 @@ Array
[adminCode1] => A8
[fclName] => city, village,...
[countryCode] => FR
- [lng] => 2.3488
+ [lng] => %s
[fcodeName] => capital of a political entity
[distance] => 1.3984
[fcl] => P
[name] => Paris
[fcode] => PPLC
[geonameId] => 2988507
- [lat] => 48.85341
+ [lat] => %s
[population] => 2138551
[adminName1] => Île-de-France
)
View
6 tests/test_findnearbyplacename.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -26,7 +26,7 @@ Array
[fclName] => city, village,...
[elevation] => 0
[countryCode] => CH
- [lng] => 8.988454
+ [lng] => %s
[adminName2] =>
[adminName3] =>
[fcodeName] => populated place
@@ -43,7 +43,7 @@ Array
[name] => Atzmännig
[fcode] => PPL
[geonameId] => 6559633
- [lat] => 47.287633
+ [lat] => %s
[population] => 0
[adminName1] => Kanton St. Gallen
)
View
22 tests/test_findnearbypostalcodes.phpt
@@ -17,52 +17,52 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
(
[postalCode] => 8775
[countryCode] => CH
- [lng] => 9.0333333
+ [lng] => %s
[placeName] => Luchsingen
- [lat] => 46.9666667
+ [lat] => %s
)
[1] => stdClass Object
(
[postalCode] => 8773
[countryCode] => CH
- [lng] => 9.03666666
+ [lng] => %s
[placeName] => Haslen GL
- [lat] => 46.96333334
+ [lat] => %s
)
[2] => stdClass Object
(
[postalCode] => 8773
[countryCode] => CH
- [lng] => 9.03666666
+ [lng] => %s
[placeName] => Haslen GL Fächer
- [lat] => 46.96333334
+ [lat] => %s
)
[3] => stdClass Object
(
[postalCode] => 8775
[countryCode] => CH
- [lng] => 9.0333333
+ [lng] => %s
[placeName] => Luchsingen-Hätzingen
- [lat] => 46.95833335
+ [lat] => %s
)
[4] => stdClass Object
(
[postalCode] => 8774
[countryCode] => CH
- [lng] => 9.05
+ [lng] => %s
[placeName] => Leuggelbach
- [lat] => 46.9666667
+ [lat] => %s
)
)
View
2  tests/test_findnearbystreets.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
View
6 tests/test_findnearestaddress.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[adminName2] => San Mateo
@@ -26,9 +26,9 @@ stdClass Object
[distance] => 0.06
[street] => Roble Ave
[countryCode] => US
- [lng] => -122.1804326
+ [lng] => %s
[streetNumber] => 675
[placename] => Menlo Park
- [lat] => 37.4513708
+ [lat] => %s
[adminName1] => California
)
View
6 tests/test_findnearestintersection.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[adminName2] => San Mateo
@@ -26,8 +26,8 @@ stdClass Object
[adminCode1] => CA
[distance] => 0.09
[countryCode] => US
- [lng] => -122.180975
+ [lng] => %s
[placename] => Menlo Park
- [lat] => 37.450738
+ [lat] => %s
[adminName1] => California
)
View
6 tests/test_get.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[alternateNames] => Array
@@ -157,7 +157,7 @@ stdClass Object
[countryName] =>
[adminCode1] => 20
[fclName] => parks,area, ...
- [lng] => 0
+ [lng] => %s
[adminName2] =>
[adminName3] =>
[fcodeName] =>
@@ -173,7 +173,7 @@ stdClass Object
[name] => Globe
[fcode] =>
[geonameId] => 6295630
- [lat] => 0
+ [lat] => %s
[population] => 0
[adminName1] => null.20
)
View
6 tests/test_gtopo30.phpt
@@ -15,10 +15,10 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[gtopo30] => 2632
- [lng] => 10.2
- [lat] => 47.01
+ [lng] => %s
+ [lat] => %s
)
View
1,242 tests/test_hierarchy.phpt
@@ -10,1209 +10,121 @@ try {
'geonameId' => 2657896,
'style' => 'full'
));
- print_r($ret);
+ print_r($ret[0]);
} catch (Services_GeoNames_Exception $exc) {
echo $exc->getMessage();
}
?>
---EXPECT--
-Array
+--EXPECTF--
+stdClass Object
(
- [0] => stdClass Object
+ [alternateNames] => Array
(
- [alternateNames] => Array
+ [0] => stdClass Object
(
- [0] => stdClass Object
- (
- [name] => Mondo
- [lang] => eo
- )
-
- [1] => stdClass Object
- (
- [name] => Aarde
- [lang] => nl
- )
-
- [2] => stdClass Object
- (
- [name] => Globe
- [lang] => en
- )
-
- [3] => stdClass Object
- (
- [name] => Orbs
- [lang] => la
- )
-
- [4] => stdClass Object
- (
- [name] => Земля
- [lang] => ru
- )
-
- [5] => stdClass Object
- (
- [name] => el món
- [lang] => ca
- )
-
- [6] => stdClass Object
- (
- [name] => Terra
- [lang] => it
- )
-
- [7] => stdClass Object
- (
- [name] => Pamânt
- [lang] => ro
- )
-
- [8] => stdClass Object
- (
- [name] => Terre
- [lang] => fr
- )
-
- [9] => stdClass Object
- (
- [name] => Föld
- [lang] => hu
- )
-
- [10] => stdClass Object
- (
- [name] => Lurra
- [lang] => eu
- )
-
- [11] => stdClass Object
- (
- [name] => Erde
- [lang] => de
- )
-
- [12] => stdClass Object
- (
- [name] => el planeta
- [lang] => es
- )
-
- [13] => stdClass Object
- (
- [name] => Maa
- [lang] => fi
- )
-
+ [name] => Mondo
+ [lang] => eo
)
- [countryName] =>
- [fclName] => parks,area, ...
- [lng] => 0
- [adminName2] =>
- [adminName3] =>
- [fcodeName] =>
- [adminName4] =>
- [timezone] => stdClass Object
+ [1] => stdClass Object
(
- [dstOffset] => 2
- [gmtOffset] => 1
- [timeZoneId] => Europe/Zurich
+ [name] => Aarde
+ [lang] => nl
)
- [fcl] => L
- [name] => Globe
- [fcode] =>
- [geonameId] => 6295630
- [lat] => 0
- [population] => 0
- [adminName1] =>
- )
-
- [1] => stdClass Object
- (
- [alternateNames] => Array
+ [2] => stdClass Object
(
- [0] => stdClass Object
- (
- [name] => ยุโรป
- [lang] => th
- )
-
- [1] => stdClass Object
- (
- [name] => 欧洲
- [lang] => zh
- )
-
- [2] => stdClass Object
- (
- [name] => أوروبا
- [lang] => ar
- )
-
- [3] => stdClass Object
- (
- [name] => Europa
- [lang] => pt
- )
-
- [4] => stdClass Object
- (
- [name] => Europa
- [lang] => sv
- )
-
- [5] => stdClass Object
- (
- [name] => Europa
- [lang] => de
- )
-
- [6] => stdClass Object
- (
- [name] => Europa
- [lang] => pl
- )
-
- [7] => stdClass Object
- (
- [name] => Europa
- [lang] => da
- )
-
- [8] => stdClass Object
- (
- [name] => an Eoraip
- [lang] => ga
- )
-
- [9] => stdClass Object
- (
- [name] => Châu Âu
- [lang] => vi
- )
-
- [10] => stdClass Object
- (
- [name] => ヨーロッパ
- [lang] => ja
- )
-
- [11] => stdClass Object
- (
- [name] => Eurohpá
- [lang] => se
- )
-
- [12] => stdClass Object
- (
- [name] => Ewrop
- [lang] => cy
- )
-
- [13] => stdClass Object
- (
- [name] => Evropa
- [lang] => cs
- )
-
- [14] => stdClass Object
- (
- [name] => Europe
- [lang] => fr
- )
-
- [15] => stdClass Object
- (
- [name] => Europa
- [lang] => it
- )
-
- [16] => stdClass Object
- (
- [name] => Eiropa
- [lang] => lv
- )
-
- [17] => stdClass Object
- (
- [name] => Evrópa
- [lang] => is
- )
-
- [18] => stdClass Object
- (
- [name] => Europa
- [lang] => lt
- )
-
- [19] => stdClass Object
- (
- [name] => Европа
- [lang] => ru
- )
-
- [20] => stdClass Object
- (
- [name] => Eurooppa
- [lang] => fi
- )
-
- [21] => stdClass Object
- (
- [name] => Europa
- [lang] => ca
- )
-
- [22] => stdClass Object
- (
- [name] => Eropa
- [lang] => id
- )
-
- [23] => stdClass Object
- (
- [name] => Europa
- [lang] => la
- )
-
- [24] => stdClass Object
- (
- [name] => Evropa
- [lang] => bs
- )
-
- [25] => stdClass Object
- (
- [name] => Europa
- [lang] => eu
- )
-
- [26] => stdClass Object
- (
- [name] => Europa
- [lang] => es
- )
-
- [27] => stdClass Object
- (
- [name] => Európa
- [lang] => hu
- )
-
- [28] => stdClass Object
- (
- [name] => Eŭropo
- [lang] => eo
- )
-
- [29] => stdClass Object
- (
- [name] => Europe
- [lang] => en
- )
-
- [30] => stdClass Object
- (
- [name] => Ευρώπη
- [lang] => el
- )
-
- [31] => stdClass Object
- (
- [name] => Европа
- [lang] => bg
- )
-
- [32] => stdClass Object
- (
- [name] => Europa
- [lang] => no
- )
-
- [33] => stdClass Object
- (
- [name] => Avrupa
- [lang] => tr
- )
-
- [34] => stdClass Object
- (
- [name] => यूरोप
- [lang] => hi
- )
-
- [35] => stdClass Object
- (
- [name] => Europa
- [lang] => nl
- )
-
- [36] => stdClass Object
- (
- [name] => אירופה
- [lang] => he
- )
-
+ [name] => Globe
+ [lang] => en
)
- [countryName] =>
- [fclName] => parks,area, ...
- [lng] => 9.140625
- [adminName2] =>
- [adminName3] =>
- [fcodeName] => continent
- [adminName4] =>
- [timezone] => stdClass Object
+ [3] => stdClass Object
(
- [dstOffset] => 2
- [gmtOffset] => 1
- [timeZoneId] => Europe/Vaduz
+ [name] => Orbs
+ [lang] => la
)
- [fcl] => L
- [name] => Europe
- [fcode] => CONT
- [geonameId] => 6255148
- [lat] => 48.6909603909
- [population] => 0
- [adminName1] =>
- )
-
- [2] => stdClass Object
- (
- [alternateNames] => Array
+ [4] => stdClass Object
(
- [0] => stdClass Object
- (
- [name] => สวิตเซอร์แลนด์
- [lang] => th
- )
-
- [1] => stdClass Object
- (
- [name] => შვეიცარია
- [lang] => ka
- )
-
- [2] => stdClass Object
- (
- [name] => Sveits
- [lang] => nb
- )
-
- [3] => stdClass Object
- (
- [name] => སུའིཊ་ཛར་ལེན
- [lang] => dz
- )
-
- [4] => stdClass Object
- (
- [name] => 瑞士
- [lang] => zh
- )
-
- [5] => stdClass Object
- (
- [name] => ஸ்விட்சர்லாந்து
- [lang] => ta
- )
-
- [6] => stdClass Object
- (
- [name] => سويسرا
- [lang] => ar
- )
-
- [7] => stdClass Object
- (
- [name] => ስዊዘርላንድ
- [lang] => am
- )
-
- [8] => stdClass Object
- (
- [name] => Svizzera
- [lang] => mt
- )
-
- [9] => stdClass Object
- (
- [name] => Uswisi
- [lang] => sw
- )
-
- [10] => stdClass Object
- (
- [name] => Switzerland
- [lang] => ms
- )
-
- [11] => stdClass Object
- (
- [name] => Suíça
- [lang] => pt
- )
-
- [12] => stdClass Object
- (
- [name] => Schweiz
- [lang] => sv
- )
-
- [13] => stdClass Object
- (
- [name] => سویس
- [lang] => ps
- )
-
- [14] => stdClass Object
- (
- [name] => Suíza
- [lang] => gl
- )
-
- [15] => stdClass Object
- (
- [name] => Швајцарска
- [lang] => sr
- )
-
- [16] => stdClass Object
- (
- [name] => Switserland
- [lang] => af
- )
-
- [17] => stdClass Object
- (
- [name] => Zvicër
- [lang] => sq
- )
-
- [18] => stdClass Object
- (
- [name] => സ്വിറ്റ്സര്‍ലന്‍ഡ്
- [lang] => ml
- )
-
- [19] => stdClass Object
- (
- [name] => Швајцарија
- [lang] => mk
- )
-
- [20] => stdClass Object
- (
- [name] => Swiiserlaand
- [lang] => so
- )
-
- [21] => stdClass Object
- (
- [name] => Schweiz
- [lang] => de
- )
-
- [22] => stdClass Object
- (
- [name] => Szwajcaria
- [lang] => pl
- )
-
- [23] => stdClass Object
- (
- [name] => Švica
- [lang] => sl
- )
-
- [24] => stdClass Object
- (
- [name] => Schweiz
- [lang] => da
- )
-
- [25] => stdClass Object
- (
- [name] => Švajčiarsko
- [lang] => sk
- )
-
- [26] => stdClass Object
- (
- [name] => An Eilvéis
- [lang] => ga
- )
-
- [27] => stdClass Object
- (
- [name] => Thụy Sĩ
- [lang] => vi
- )
-
- [28] => stdClass Object
- (
- [name] => スイス連邦
- [lang] => ja
- )
-
- [29] => stdClass Object
- (
- [name] => Šveica
- [lang] => se
- )
-
- [30] => stdClass Object
- (
- [name] => Y Swistir
- [lang] => cy
- )
-
- [31] => stdClass Object
- (
- [name] => Švýcarsko
- [lang] => cs
- )
-
- [32] => stdClass Object
- (
- [name] => Suisse
- [lang] => fr
- )
-
- [33] => stdClass Object
- (
- [name] => Confederazione Svizzera
- [lang] => it
- )
-
- [34] => stdClass Object
- (
- [name] => Šveice
- [lang] => lv
- )
-
- [35] => stdClass Object
- (
- [name] => Sviss
- [lang] => is
- )
-
- [36] => stdClass Object
- (
- [name] => Šveicarija
- [lang] => lt
- )
-
- [37] => stdClass Object
- (
- [name] => Sveis
- [lang] => fo
- )
-
- [38] => stdClass Object
- (
- [name] => Швейцария
- [lang] => ru
- )
-
- [39] => stdClass Object
- (
- [name] => ສະວິດເຊີແລນ
- [lang] => lo
- )
-
- [40] => stdClass Object
- (
- [name] => Swisi
- [lang] => ln
- )
-
- [41] => stdClass Object
- (
- [name] => Sveitsi
- [lang] => fi
- )
-
- [42] => stdClass Object
- (
- [name] => سوئزر لینڈ
- [lang] => ur
- )
-
- [43] => stdClass Object
- (
- [name] => Elveţia
- [lang] => ro
- )
-
- [44] => stdClass Object
- (
- [name] => Suïssa
- [lang] => ca
- )
-
- [45] => stdClass Object
- (
- [name] => Swiss
- [lang] => id
- )
-
- [46] => stdClass Object
- (
- [name] => Швейцарія
- [lang] => uk
- )
-
- [47] => stdClass Object
- (
- [name] => سوئیس
- [lang] => fa
- )
-
- [48] => stdClass Object
- (
- [name] => Suissa
- [lang] => ia
- )
-
- [49] => stdClass Object
- (
- [name] => Շվեյցարիա
- [lang] => hy
- )
-
- [50] => stdClass Object
- (
- [name] => Suitza
- [lang] => eu
- )
-
- [51] => stdClass Object
- (
- [name] => Ĩveits
- [lang] => et
- )
-
- [52] => stdClass Object
- (
- [name] => Suiza
- [lang] => es
- )
-
- [53] => stdClass Object
- (
- [name] => Svájc
- [lang] => hu
- )
-
- [54] => stdClass Object
- (
- [name] => Švicarska
- [lang] => hr
- )
-
- [55] => stdClass Object
- (
- [name] => সুইজারল্যান্ড
- [lang] => bn
- )
-
- [56] => stdClass Object
- (
- [name] => Svisujo
- [lang] => eo
- )
-
- [57] => stdClass Object
- (
- [name] => Switzerland
- [lang] => en
- )
-
- [58] => stdClass Object
- (
- [name] => Ελβετία
- [lang] => el
- )
-
- [59] => stdClass Object
- (
- [name] => 스위스
- [lang] => ko
- )
-
- [60] => stdClass Object
- (
- [name] => Швейцария
- [lang] => bg
- )
-
- [61] => stdClass Object
- (
- [name] => ស្វីស
- [lang] => km
- )
-
- [62] => stdClass Object
- (
- [name] => Sveits
- [lang] => nn
- )
-
- [63] => stdClass Object
- (
- [name] => İsviçre
- [lang] => tr
- )
-
- [64] => stdClass Object
- (
- [name] => Швейцарыя
- [lang] => be
- )
-
- [65] => stdClass Object
- (
- [name] => स्विटज़रलैंड
- [lang] => hi
- )
-
- [66] => stdClass Object
- (
- [name] => Zwitserland
- [lang] => nl
- )
-
- [67] => stdClass Object
- (
- [name] => Suisilani
- [lang] => to
- )
-
- [68] => stdClass Object
- (
- [name] => שוויץ
- [lang] => he
- )
-
+ [name] => Земля
+ [lang] => ru
)
- [countryName] => Switzerland
- [adminCode1] => 00
- [fclName] => country, state, region,...
- [countryCode] => CH
- [lng] => 8.01426887512
- [adminName2] =>
- [adminName3] =>
- [fcodeName] => independent political entity
- [adminName4] =>
- [timezone] => stdClass Object
+ [5] => stdClass Object
(
- [dstOffset] => 2
- [gmtOffset] => 1
- [timeZoneId] => Europe/Zurich
+ [name] => el món
+ [lang] => ca
)
- [fcl] => A
- [name] => Switzerland
- [fcode] => PCLI
- [geonameId] => 2658434
- [lat] => 47.0001583753
- [population] => 7581000
- [adminName1] =>
- )
-
- [3] => stdClass Object
- (
- [countryName] => Switzerland
- [adminCode1] => ZH
- [fclName] => country, state, region,...
- [countryCode] => CH
- [lng] => 8.6666667
- [adminName2] =>
- [adminName3] =>
- [fcodeName] => first-order administrative division
- [adminName4] =>
- [timezone] => stdClass Object
+ [6] => stdClass Object
(
- [dstOffset] => 2
- [gmtOffset] => 1
- [timeZoneId] => Europe/Zurich
+ [name] => Terra
+ [lang] => it
)
- [fcl] => A
- [name] => Kanton Zürich
- [fcode] => ADM1
- [geonameId] => 2657895
- [lat] => 47.4166667
- [population] => 1289559
- [adminName1] => Zürich
- )
-
- [4] => stdClass Object
- (
- [alternateNames] => Array
+ [7] => stdClass Object
(
- [0] => stdClass Object
- (
- [name] => Lungsod ng Zürich
- [lang] => tl
- )
-
- [1] => stdClass Object
- (
- [name] => 苏黎世
- [lang] => zh
- )
-
- [2] => stdClass Object
- (
- [name] => زيورخ
- [lang] => ar
- )
-
- [3] => stdClass Object
- (
- [name] => Canton Zurìcu
- [lang] => scn
- )
-
- [4] => stdClass Object
- (
- [name] => Zürich
- [lang] => sv
- )
-
- [5] => stdClass Object
- (
- [name] => Zurique
- [lang] => pt
- )
-
- [6] => stdClass Object
- (
- [name] => Zürich
- [lang] => af
- )
-
- [7] => stdClass Object
- (
- [name] => Цирих
- [lang] => sr
- )
-
- [8] => stdClass Object
- (
- [name] => Zürich
- [lang] => sq
- )
-
- [9] => stdClass Object
- (
- [name] => Zürich
- [lang] => de
- )
-
- [10] => stdClass Object
- (
- [name] => Zürich
- [lang] => als
- )
-
- [11] => stdClass Object
- (
- [name] => Zurych
- [lang] => pl
- )
-
- [12] => stdClass Object
- (
- [name] => Zürich
- [lang] => sl
- )
-
- [13] => stdClass Object
- (
- [name] => Zürich
- [lang] => da
- )
-
- [14] => stdClass Object
- (
- [name] => Zürich
- [lang] => sk
- )
-
- [15] => stdClass Object
- (
- [name] => Zurich
- [lang] => pdc
- )
-
- [16] => stdClass Object
- (
- [name] => Zürich
- [lang] => sh
- )
-
- [17] => stdClass Object
- (
- [name] => Zürich
- [lang] => vi
- )
-
- [18] => stdClass Object
- (
- [name] => チューリッヒ
- [lang] => ja
- )
-
- [19] => stdClass Object
- (
- [name] => Curych
- [lang] => cs
- )
-
- [20] => stdClass Object
- (
- [name] => Zurigo
- [lang] => it
- )
-
- [21] => stdClass Object
- (
- [name] => Zurich
- [lang] => fr
- )
-
- [22] => stdClass Object
- (
- [name] => Cīrihe
- [lang] => lv
- )
-
- [23] => stdClass Object
- (
- [name] => Zürich
- [lang] => is
- )
-
- [24] => stdClass Object
- (
- [name] => ܨܝܘܪܫ
- [lang] => arc
- )
-
- [25] => stdClass Object
- (
- [name] => Ciūrichas
- [lang] => lt
- )
-
- [26] => stdClass Object
- (
- [name] => Zürich
- [lang] => io
- )
-
- [27] => stdClass Object
- (
- [name] => Цюрих
- [lang] => ru
- )
-
- [28] => stdClass Object
- (
- [name] => Zürich
- [lang] => fi
- )
-
- [29] => stdClass Object
- (
- [name] => Zürich
- [lang] => ro
- )
-
- [30] => stdClass Object
- (
- [name] => Turitg
- [lang] => rm
- )
-
- [31] => stdClass Object
- (
- [name] => Zuric
- [lang] => ca
- )
-
- [32] => stdClass Object
- (
- [name] => Zürich
- [lang] => id
- )
-
- [33] => stdClass Object
- (
- [name] => Turicum
- [lang] => la
- )
-
- [34] => stdClass Object
- (
- [name] => سيۇرىخ
- [lang] => ug
- )
-
- [35] => stdClass Object
- (
- [name] => Zürich
- [lang] => bs
- )
-
- [36] => stdClass Object
- (
- [name] => Zurich
- [lang] => eu
- )
-
- [37] => stdClass Object
- (
- [name] => Tsurique
- [lang] => frp
- )
-
- [38] => stdClass Object
- (
- [name] => Zürich
- [lang] => et
- )
-
- [39] => stdClass Object
- (
- [name] => Zürich
- [lang] => hu
- )
-
- [40] => stdClass Object
- (
- [name] => Zúrich
- [lang] => es
- )
-
- [41] => stdClass Object
- (
- [name] => Zürich
- [lang] => hr
- )
-
- [42] => stdClass Object
- (
- [name] => Zuriko
- [lang] => eo
- )
-
- [43] => stdClass Object
- (
- [name] => Zürich
- [lang] => en
- )
-
- [44] => stdClass Object
- (
- [name] => Zürich
- [lang] => qu
- )
-
- [45] => stdClass Object
- (
- [name] => Ζυρίχη
- [lang] => el
- )
-
- [46] => stdClass Object
- (
- [name] => 취리히
- [lang] => ko
- )
-
- [47] => stdClass Object
- (
- [name] => Цюрих
- [lang] => bg
- )
-
- [48] => stdClass Object
- (
- [name] => Zürich
- [lang] => no
- )
-
- [49] => stdClass Object
- (
- [name] => Zürih
- [lang] => tr
- )
-
- [50] => stdClass Object
- (
- [name] => Zürich
- [lang] => nn
- )
+ [name] => Pamânt
+ [lang] => ro
+ )
- [51] => stdClass Object
- (
- [name] => Цюрых
- [lang] => be
- )
+ [8] => stdClass Object
+ (
+ [name] => Terre
+ [lang] => fr
+ )
- [52] => stdClass Object
- (
- [name] => ज़्यूरिख
- [lang] => hi
- )
+ [9] => stdClass Object
+ (
+ [name] => Föld
+ [lang] => hu
+ )
- [53] => stdClass Object
- (
- [name] => Zürich
- [lang] => nl
- )
+ [10] => stdClass Object
+ (
+ [name] => Lurra
+ [lang] => eu
+ )
- [54] => stdClass Object
- (
- [name] => ציריך
- [lang] => he
- )
+ [11] => stdClass Object
+ (
+ [name] => Erde
+ [lang] => de
+ )
+ [12] => stdClass Object
+ (
+ [name] => el planeta
+ [lang] => es
)
- [countryName] => Switzerland
- [adminCode1] => ZH
- [fclName] => city, village,...
- [countryCode] => CH
- [lng] => 8.55
- [adminName2] =>
- [adminName3] =>
- [fcodeName] => seat of a first-order administrative division
- [adminName4] =>
- [timezone] => stdClass Object
+ [13] => stdClass Object
(
- [dstOffset] => 2
- [gmtOffset] => 1
- [timeZoneId] => Europe/Zurich
+ [name] => Maa
+ [lang] => fi
)
- [fcl] => P
- [name] => Zürich
- [fcode] => PPLA
- [geonameId] => 2657896
- [lat] => 47.3666667
- [population] => 341730
- [adminName1] => Zürich
)
+ [countryName] =>
+ [fclName] => parks,area, ...
+ [lng] => 0
+ [adminName2] =>
+ [adminName3] =>
+ [fcodeName] =>
+ [adminName4] =>
+ [timezone] => stdClass Object
+ (
+ [dstOffset] => 2
+ [gmtOffset] => 1
+ [timeZoneId] => Europe/Zurich
+ )
+
+ [fcl] => L
+ [name] => Globe
+ [fcode] =>
+ [geonameId] => 6295630
+ [lat] => 0
+ [population] => 0
+ [adminName1] =>
)
View
2  tests/test_neighbourhood.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
stdClass Object
(
[adminName2] => New York County
View
22 tests/test_neighbours.phpt
@@ -12,7 +12,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -21,13 +21,13 @@ Array
[adminCode1] => 00
[fclName] => country, state, region,...
[countryCode] => AT
- [lng] => 13.3333333
+ [lng] => %s
[fcodeName] => independent political entity
[fcl] => A
[name] => Austria
[fcode] => PCLI
[geonameId] => 2782113
- [lat] => 47.3333333
+ [lat] => %s
[population] => 8205000
[adminName1] =>
)
@@ -38,13 +38,13 @@ Array
[adminCode1] => 00
[fclName] => country, state, region,...
[countryCode] => FR
- [lng] => 2
+ [lng] => %s
[fcodeName] => independent political entity
[fcl] => A
[name] => France
[fcode] => PCLI
[geonameId] => 3017382
- [lat] => 46
+ [lat] => %s
[population] => 64094000
[adminName1] =>
)
@@ -55,13 +55,13 @@ Array
[adminCode1] => 00
[fclName] => country, state, region,...
[countryCode] => DE
- [lng] => 10.5
+ [lng] => %s
[fcodeName] => independent political entity
[fcl] => A
[name] => Germany
[fcode] => PCLI
[geonameId] => 2921044
- [lat] => 51.5
+ [lat] => %s
[population] => 82369000
[adminName1] =>
)
@@ -72,13 +72,13 @@ Array
[adminCode1] => 00
[fclName] => country, state, region,...
[countryCode] => IT
- [lng] => 12.8333333
+ [lng] => %s
[fcodeName] => independent political entity
[fcl] => A
[name] => Italy
[fcode] => PCLI
[geonameId] => 3175395
- [lat] => 42.8333333
+ [lat] => %s
[population] => 58145000
[adminName1] =>
)
@@ -89,13 +89,13 @@ Array
[adminCode1] => 00
[fclName] => country, state, region,...
[countryCode] => LI
- [lng] => 9.5333333
+ [lng] => %s
[fcodeName] => independent political entity
[fcl] => A
[name] => Liechtenstein
[fcode] => PCLI
[geonameId] => 3042058
- [lat] => 47.1666667
+ [lat] => %s
[population] => 33717
[adminName1] =>
)
View
2  tests/test_other_01.phpt
@@ -17,7 +17,7 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => children
View
2  tests/test_other_02.phpt
@@ -13,5 +13,5 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
Unknown service endpoint "unknownEndpoint"
View
2  tests/test_other_03.phpt
@@ -16,5 +16,5 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
missing lat/lng
View
2  tests/test_other_04.phpt
@@ -18,5 +18,5 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
404 Not Found
View
2  tests/test_other_05.phpt
@@ -14,6 +14,6 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
Absolute URL required
HTTP_Request2_Exception
View
2  tests/test_other_06.phpt
@@ -20,5 +20,5 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
bool(true)
View
2  tests/test_other_07.phpt
@@ -17,6 +17,6 @@ try {
}
?>
---EXPECT--
+--EXPECTF--
Not Found
bool(true)
View
2  tests/test_postalcodecountryinfo.phpt
@@ -12,7 +12,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
View
6 tests/test_postalcodelookup.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -23,9 +23,9 @@ Array
[postalcode] => 31200
[adminCode1] => N
[countryCode] => FR
- [lng] => 1.09583333261
+ [lng] => %s
[placeName] => Toulouse
- [lat] => 43.2637681174
+ [lat] => %s
[adminName1] => Midi-Pyrenees
)
View
10 tests/test_postalcodesearch.phpt
@@ -15,7 +15,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -27,9 +27,9 @@ Array
[adminCode1] => SG
[postalCode] => 9011
[countryCode] => CH
- [lng] => 9.4
+ [lng] => %s
[placeName] => St. Gallen
- [lat] => 47.4666667
+ [lat] => %s
[adminName1] => St. Gallen
)
@@ -38,9 +38,9 @@ Array
[adminCode1] => GS
[postalCode] => 9011
[countryCode] => HU
- [lng] => 17.7819444375
+ [lng] => %s
[placeName] => Győr
- [lat] => 47.6076389
+ [lat] => %s
[adminName1] => Győr-Moson-Sopron
)
View
10 tests/test_search.phpt
@@ -16,7 +16,7 @@ try {
echo $exc->getMessage();
}
?>
---EXPECT--
+--EXPECTF--
Array
(
[0] => stdClass Object
@@ -25,13 +25,13 @@ Array
[adminCode1] => ENG
[fclName] => city, village,...
[countryCode] => GB
- [lng] => -0.125532746315
+ [lng] => %s
[fcodeName] => capital of a political entity
[fcl] => P
[name] => Londres
[fcode] => PPLC
[geonameId] => 2643743
- [lat] => 51.5084152564
+ [lat] => %s
[population] => 7421209
[adminName1] => Angleterre
)
@@ -42,13 +42,13 @@ Array
[adminCode1] => 08
[fclName] => city, village,...
[countryCode] => CA
- [lng] => -81.233042387
+ [lng] => %s
[fcodeName] => populated place
[fcl] => P
[name] => London
[fcode] => PPL
[geonameId] => 6058560
- [lat] => 42.983389283
+ [lat] => %s
[population] => 352395
[adminName1] => Ontario
)
View
198