We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 173e26c commit 5d5465dCopy full SHA for 5d5465d
1 file changed
tests/GeocoderTest.php
@@ -88,11 +88,15 @@ public function testProxy()
88
} catch (\Exception $e) {
89
$this->markTestSkipped('PROXY environment variable is not a valid proxy URL: ' . $proxy);
90
}
91
- $query = "82 Clerkenwell Road, London";
92
- $result = $geocoder->geocode($query);
93
94
- // print_r($result);
+ if (getenv('SKIP_CURL')) {
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Proxy support requires the CURL extension');
95
+ $geocoder->geocode("82 Clerkenwell Road, London");
96
+ return;
97
+ }
98
99
+ $result = $geocoder->geocode("82 Clerkenwell Road, London");
100
$this->assertEquals(200, $result['status']['code']);
101
$this->assertEquals('OK', $result['status']['message']);
102
0 commit comments