Skip to content

Commit fe513e4

Browse files
committed
Fix tests
1 parent 9d84180 commit fe513e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/Geocoder/Tests/Provider/GeocoderCaProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testGetReversedDataWithRealCoordinates()
151151
$this->assertEquals(1, $result['streetNumber']);
152152
$this->assertEquals('New St', $result['streetName']);
153153
$this->assertEquals(10005, $result['zipcode']);
154-
$this->assertEquals('YORK', $result['city']);
154+
$this->assertEquals('NEW YORK', $result['city']);
155155
$this->assertEquals('NY', $result['cityDistrict']);
156156
$this->assertNull($result['region']);
157157
$this->assertNull($result['regionCode']);

tests/Geocoder/Tests/Provider/GoogleMapsProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function testGetReversedDataWithRealCoordinates()
250250
$result = $provider->getReversedData(array(48.8631507, 2.388911));
251251

252252
$this->assertInternalType('array', $result);
253-
$this->assertCount(1, $result);
253+
$this->assertTrue(is_array($result[0]));
254254

255255
$result = $result[0];
256256
$this->assertInternalType('array', $result);

tests/Geocoder/Tests/Provider/OpenStreetMapsProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function testGetGeocodedDataWithRealAddressWithLocale()
159159
$this->assertEquals('Clermont-Ferrand', $results[0]['county']);
160160
$this->assertEquals('Auvergne', $results[0]['region']);
161161
$this->assertNull($results[0]['regionCode']);
162-
$this->assertEquals('France métropolitaine', $results[0]['country']);
162+
$this->assertEquals('France', $results[0]['country']);
163163
$this->assertEquals('FR', $results[0]['countryCode']);
164164

165165
$this->assertInternalType('array', $results[1]);
@@ -181,7 +181,7 @@ public function testGetGeocodedDataWithRealAddressWithLocale()
181181
$this->assertEquals('Clermont-Ferrand', $results[1]['county']);
182182
$this->assertEquals('Auvergne', $results[1]['region']);
183183
$this->assertNull($results[1]['regionCode']);
184-
$this->assertEquals('France métropolitaine', $results[1]['country']);
184+
$this->assertEquals('France', $results[1]['country']);
185185
$this->assertEquals('FR', $results[1]['countryCode']);
186186
}
187187

0 commit comments

Comments
 (0)