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