@@ -16,7 +16,7 @@ public function testGetName()
16
16
/**
17
17
* @expectedException \Geocoder\Exception\NoResult
18
18
*/
19
- public function testGetGeocodedDataWithInvalidData ()
19
+ public function testGeocodeWithInvalidData ()
20
20
{
21
21
$ provider = new ArcGISOnline ($ this ->getMockAdapter ());
22
22
$ provider ->geocode ('loremipsum ' );
@@ -26,7 +26,7 @@ public function testGetGeocodedDataWithInvalidData()
26
26
* @expectedException \Geocoder\Exception\NoResult
27
27
* @expectedExceptionMessage Invalid address.
28
28
*/
29
- public function testGetGeocodedDataWithNull ()
29
+ public function testGeocodeWithNull ()
30
30
{
31
31
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
32
32
$ provider ->geocode (null );
@@ -36,7 +36,7 @@ public function testGetGeocodedDataWithNull()
36
36
* @expectedException \Geocoder\Exception\NoResult
37
37
* @expectedExceptionMessage Invalid address.
38
38
*/
39
- public function testGetGeocodedDataWithEmpty ()
39
+ public function testGeocodeWithEmpty ()
40
40
{
41
41
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
42
42
$ provider ->geocode ('' );
@@ -46,7 +46,7 @@ public function testGetGeocodedDataWithEmpty()
46
46
* @expectedException \Geocoder\Exception\UnsupportedOperation
47
47
* @expectedExceptionMessage The ArcGISOnline provider does not support IP addresses, only street addresses.
48
48
*/
49
- public function testGetGeocodedDataWithLocalhostIPv4 ()
49
+ public function testGeocodeWithLocalhostIPv4 ()
50
50
{
51
51
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
52
52
$ provider ->geocode ('127.0.0.1 ' );
@@ -56,7 +56,7 @@ public function testGetGeocodedDataWithLocalhostIPv4()
56
56
* @expectedException \Geocoder\Exception\UnsupportedOperation
57
57
* @expectedExceptionMessage The ArcGISOnline provider does not support IP addresses, only street addresses.
58
58
*/
59
- public function testGetGeocodedDataWithLocalhostIPv6 ()
59
+ public function testGeocodeWithLocalhostIPv6 ()
60
60
{
61
61
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
62
62
$ provider ->geocode ('::1 ' );
@@ -66,13 +66,13 @@ public function testGetGeocodedDataWithLocalhostIPv6()
66
66
* @expectedException \Geocoder\Exception\NoResult
67
67
* @expectedExceptionMessage Could not execute query "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=10+avenue+Gambetta%2C+Paris%2C+France&maxLocations=5&f=json&outFields=*".
68
68
*/
69
- public function testGetGeocodedDataWithAddressGetsNullContent ()
69
+ public function testGeocodeWithAddressGetsNullContent ()
70
70
{
71
71
$ provider = new ArcGISOnline ($ this ->getMockAdapterReturns (null ));
72
72
$ provider ->geocode ('10 avenue Gambetta, Paris, France ' );
73
73
}
74
74
75
- public function testGetGeocodedDataWithRealAddress ()
75
+ public function testGeocodeWithRealAddress ()
76
76
{
77
77
$ provider = new ArcGISOnline ($ this ->getAdapter ());
78
78
$ results = $ provider ->geocode ('10 avenue Gambetta, Paris, France ' );
@@ -101,7 +101,7 @@ public function testGetGeocodedDataWithRealAddress()
101
101
$ this ->assertNull ($ result ->getTimezone ());
102
102
}
103
103
104
- public function testGetGeocodedDataWithRealAddressAndHttps ()
104
+ public function testGeocodeWithRealAddressAndHttps ()
105
105
{
106
106
$ provider = new ArcGISOnline ($ this ->getAdapter (), null , true );
107
107
$ results = $ provider ->geocode ('10 avenue Gambetta, Paris, France ' );
@@ -135,7 +135,7 @@ public function testGetGeocodedDataWithRealAddressAndHttps()
135
135
* @expectedException \Geocoder\Exception\NoResult
136
136
* @expectedExceptionMessage No results found for query "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=10+avenue+Gambetta%2C+Paris%2C+France".
137
137
*/
138
- public function testGetGeocodedDataWithInvalidAddressForSourceCountry ()
138
+ public function testGeocodeWithInvalidAddressForSourceCountry ()
139
139
{
140
140
$ provider = new ArcGISOnline ($ this ->getAdapter (), 'USA ' );
141
141
$ provider ->geocode ('10 avenue Gambetta, Paris, France ' );
@@ -145,7 +145,7 @@ public function testGetGeocodedDataWithInvalidAddressForSourceCountry()
145
145
* @expectedException \Geocoder\Exception\NoResult
146
146
* @expectedExceptionMessage No results found for query "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=10+avenue+Gambetta%2C+Paris%2C+France".
147
147
*/
148
- public function testGetGeocodedDataWithInvalidAddressWithHttpsForSourceCountry ()
148
+ public function testGeocodeWithInvalidAddressWithHttpsForSourceCountry ()
149
149
{
150
150
$ provider = new ArcGISOnline ($ this ->getAdapter (), 'USA ' , true );
151
151
$ provider ->geocode ('10 avenue Gambetta, Paris, France ' );
@@ -155,7 +155,7 @@ public function testGetGeocodedDataWithInvalidAddressWithHttpsForSourceCountry()
155
155
* @expectedException \Geocoder\Exception\NoResult
156
156
* @expectedExceptionMessage Could not execute query "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=2.000000,1.000000&maxLocations=5&f=json&outFields=*".
157
157
*/
158
- public function testGetReversedDataWithInvalid ()
158
+ public function testReverseWithInvalid ()
159
159
{
160
160
$ provider = new ArcGISOnline ($ this ->getMockAdapter ());
161
161
$ provider ->reverse (1 , 2 );
@@ -165,13 +165,13 @@ public function testGetReversedDataWithInvalid()
165
165
* @expectedException \Geocoder\Exception\NoResult
166
166
* @expectedExceptionMessage Could not execute query "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=2.389020,48.863280&maxLocations=5&f=json&outFields=*".
167
167
*/
168
- public function testGetReversedDataWithCoordinatesContentReturnNull ()
168
+ public function testReverseWithCoordinatesContentReturnNull ()
169
169
{
170
170
$ provider = new ArcGISOnline ($ this ->getMockAdapterReturns (null ));
171
171
$ provider ->reverse (48.863279997000461 , 2.3890199980004354 );
172
172
}
173
173
174
- public function testGetReversedDataWithRealCoordinates ()
174
+ public function testReverseWithRealCoordinates ()
175
175
{
176
176
$ provider = new ArcGISOnline ($ this ->getAdapter ());
177
177
$ results = $ provider ->reverse (48.863279997000461 , 2.3890199980004354 );
@@ -200,7 +200,7 @@ public function testGetReversedDataWithRealCoordinates()
200
200
$ this ->assertNull ($ result ->getTimezone ());
201
201
}
202
202
203
- public function testGetReversedDataWithRealCoordinatesWithHttps ()
203
+ public function testReverseWithRealCoordinatesWithHttps ()
204
204
{
205
205
$ provider = new ArcGISOnline ($ this ->getAdapter (), null , true );
206
206
$ results = $ provider ->reverse (48.863279997000461 , 2.3890199980004354 );
@@ -229,7 +229,7 @@ public function testGetReversedDataWithRealCoordinatesWithHttps()
229
229
$ this ->assertNull ($ result ->getTimezone ());
230
230
}
231
231
232
- public function testGetGeocodedDataWithCity ()
232
+ public function testGeocodeWithCity ()
233
233
{
234
234
$ provider = new ArcGISOnline ($ this ->getAdapter ());
235
235
$ results = $ provider ->geocode ('Hannover ' );
@@ -302,7 +302,7 @@ public function testGetGeocodedDataWithCity()
302
302
* @expectedException \Geocoder\Exception\UnsupportedOperation
303
303
* @expectedExceptionMessage The ArcGISOnline provider does not support IP addresses, only street addresses.
304
304
*/
305
- public function testGetGeocodedDataWithRealIPv4 ()
305
+ public function testGeocodeWithRealIPv4 ()
306
306
{
307
307
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
308
308
$ provider ->geocode ('88.188.221.14 ' );
@@ -312,7 +312,7 @@ public function testGetGeocodedDataWithRealIPv4()
312
312
* @expectedException \Geocoder\Exception\UnsupportedOperation
313
313
* @expectedExceptionMessage The ArcGISOnline provider does not support IP addresses, only street addresses.
314
314
*/
315
- public function testGetGeocodedDataWithRealIPv6 ()
315
+ public function testGeocodeWithRealIPv6 ()
316
316
{
317
317
$ provider = new ArcGISOnline ($ this ->getMockAdapter ($ this ->never ()));
318
318
$ provider ->geocode ('::ffff:88.188.221.14 ' );
0 commit comments