We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f9df7f commit a328949Copy full SHA for a328949
tests/Laravel5_3/Providers/GeocoderServiceTest.php
@@ -194,4 +194,19 @@ public function testJapaneseCharacterGeocoding()
194
$this->assertEquals($cacheKey, '108-0075e69db1e4baace983bde6b8afe58cbae6b8afe58d97efbc92e4b881e79baeefbc91efbc96efbc8defbc93');
195
$this->assertTrue(cache()->has("geocoder-{$cacheKey}"));
196
}
197
+
198
+ public function testFailedGeocodingCanBeCaught()
199
+ {
200
+ $result = 'success';
201
202
+ try {
203
+ app('geocoder')
204
+ ->geocode('asd,Afghanistan')
205
+ ->get();
206
+ } catch (\Throwable $exception) {
207
+ $result = 'failure';
208
+ }
209
210
+ $this->assertEquals('failure', $result);
211
212
0 commit comments