@@ -27,7 +27,7 @@ public function testGeocodeWithNullApiKey()
2727
2828 /**
2929 * @expectedException \Geocoder\Exception\NoResult
30- * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&address=
30+ * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&address=
3131 */
3232 public function testGeocodeWithNull ()
3333 {
@@ -37,7 +37,7 @@ public function testGeocodeWithNull()
3737
3838 /**
3939 * @expectedException \Geocoder\Exception\NoResult
40- * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&address=
40+ * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&address=
4141 */
4242 public function testGeocodeWithEmpty ()
4343 {
@@ -47,7 +47,7 @@ public function testGeocodeWithEmpty()
4747
4848 /**
4949 * @expectedException \Geocoder\Exception\NoResult
50- * @expectedExceptionMessage ould not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&address=%E7%99%BE%E5%BA%A6%E5%A4%A7%E5%8E%A6
50+ * @expectedExceptionMessage ould not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&address=%E7%99%BE%E5%BA%A6%E5%A4%A7%E5%8E%A6
5151 */
5252 public function testGeocodeWithAddressContentReturnNull ()
5353 {
@@ -57,7 +57,7 @@ public function testGeocodeWithAddressContentReturnNull()
5757
5858 /**
5959 * @expectedException \Geocoder\Exception\NoResult
60- * @expectedExceptionMessage ould not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&address=%E7%99%BE%E5%BA%A6%E5%A4%A7%E5%8E%A6
60+ * @expectedExceptionMessage ould not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&address=%E7%99%BE%E5%BA%A6%E5%A4%A7%E5%8E%A6
6161 */
6262 public function testGeocodeWithAddress ()
6363 {
@@ -117,7 +117,7 @@ public function testGeocodeWithRealAddress()
117117
118118 /**
119119 * @expectedException Geocoder\Exception\NoResult
120- * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&location=1.000000,2.000000
120+ * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&location=1.000000,2.000000
121121 */
122122 public function testReverse ()
123123 {
@@ -137,7 +137,7 @@ public function testReverseWithoutApiKey()
137137
138138 /**
139139 * @expectedException \Geocoder\Exception\NoResult
140- * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder?output=json&key =api_key&location=39.983424,116.322987
140+ * @expectedExceptionMessage Could not execute query http://api.map.baidu.com/geocoder/v2/ ?output=json&pois=0&ak =api_key&location=39.983424,116.322987
141141 */
142142 public function testReverseWithCoordinatesContentReturnNull ()
143143 {
0 commit comments