| @@ 40-53 (lines=14) @@ | ||
| 37 | $actual->get(""); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testGeocodeProtocol() |
|
| 41 | { |
|
| 42 | $actual = new Geocode(); |
|
| 43 | $this->assertEquals( |
|
| 44 | 'http://maps.googleapis.com/maps/api/geocode/json?', |
|
| 45 | $actual->getServiceUrl() |
|
| 46 | ); |
|
| 47 | ||
| 48 | $actual = new Geocode(); |
|
| 49 | $this->assertEquals( |
|
| 50 | 'http://maps.googleapis.com/maps/api/geocode/json?', |
|
| 51 | $actual->getServiceUrl() |
|
| 52 | ); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function testGeocodeKey() |
|
| 56 | { |
|
| @@ 55-68 (lines=14) @@ | ||
| 52 | ); |
|
| 53 | } |
|
| 54 | ||
| 55 | public function testGeocodeKey() |
|
| 56 | { |
|
| 57 | $actual = new Geocode('DUMMYKEY'); |
|
| 58 | $this->assertEquals( |
|
| 59 | 'https://maps.googleapis.com/maps/api/geocode/json?key=DUMMYKEY', |
|
| 60 | $actual->getServiceUrl() |
|
| 61 | ); |
|
| 62 | ||
| 63 | $actual = new Geocode('DUMMYKEY'); |
|
| 64 | $this->assertEquals( |
|
| 65 | 'https://maps.googleapis.com/maps/api/geocode/json?key=DUMMYKEY', |
|
| 66 | $actual->getServiceUrl() |
|
| 67 | ); |
|
| 68 | } |
|
| 69 | ||
| 70 | ||
| 71 | public function providerTestGeocodeProvider() |
|