Skip to content

Commit a0b7496

Browse files
committed
fix Yandex provider exception messages
1 parent f2f5b7b commit a0b7496

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Geocoder/Provider/Yandex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function geocode($address)
5959
{
6060
// This API doesn't handle IPs
6161
if (filter_var($address, FILTER_VALIDATE_IP)) {
62-
throw new UnsupportedOperation('The Yandex does not support IP addresses.');
62+
throw new UnsupportedOperation('The Yandex provider does not support IP addresses, only street addresses.');
6363
}
6464

6565
$query = sprintf(self::GEOCODE_ENDPOINT_URL, urlencode($address));

tests/Geocoder/Tests/Provider/YandexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testGetName()
1818

1919
/**
2020
* @expectedException \Geocoder\Exception\UnsupportedOperation
21-
* @expectedExceptionMessage The Yandex does not support IP addresses.
21+
* @expectedExceptionMessage The Yandex provider does not support IP addresses, only street addresses.
2222
*/
2323
public function testGeocodeWithLocalhostIPv4()
2424
{
@@ -28,7 +28,7 @@ public function testGeocodeWithLocalhostIPv4()
2828

2929
/**
3030
* @expectedException \Geocoder\Exception\UnsupportedOperation
31-
* @expectedExceptionMessage The Yandex does not support IP addresses.
31+
* @expectedExceptionMessage The Yandex provider does not support IP addresses, only street addresses.
3232
*/
3333
public function testGeocodeWithLocalhostIPv6()
3434
{

0 commit comments

Comments
 (0)