Skip to content

Commit 4b39b10

Browse files
Test is actually an example
1 parent 6e26b92 commit 4b39b10

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/index.php renamed to examples/example.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* @author Jeroen Desloovere <jeroen@siesqo.be>
99
*/
1010

11-
// require Geolocation
12-
require_once '../src/JeroenDesloovere/Geolocation/Geolocation.php';
11+
require_once __DIR__ . '/../src/JeroenDesloovere/Geolocation/Geolocation.php';
12+
13+
use JeroenDesloovere\Geolocation\Geolocation;
1314

1415
// define result
1516
$result = Geolocation::getCoordinates('Koningin Maria Hendrikaplein', '1', 'Gent', '9000', 'belgië');

src/JeroenDesloovere/Geolocation/Geolocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ public static function getCoordinates($street = null, $streetNumber = null, $cit
146146
*
147147
* @author Jeroen Desloovere <info@jeroendesloovere.be>
148148
*/
149-
class GeolocationException extends Exception {}
149+
class GeolocationException extends \Exception {}

0 commit comments

Comments
 (0)