for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2018 - present
* Google Maps PHP - GoogleMapsApiTest.php
* author: Roberto Belotti - [email protected]
* web : robertobelotti.com, github.com/biscolab
* Initial version created on: 5/9/2018
* MIT license: https://github.com/biscolab/google-maps-php/blob/master/LICENSE
*/
namespace Biscolab\geocode\Tests;
use Biscolab\GoogleMaps\Enum\GoogleMapsApiConfigFields;
use Biscolab\GoogleMaps\GoogleMapsApi;
use PHPUnit\Framework\TestCase;
class GoogleMapsApiTest extends TestCase {
* @test
public function checkApiKeyTest() {
$gm = new GoogleMapsApi([
GoogleMapsApiConfigFields::SERVICE_ENDPOINT => 'geocode',
GoogleMapsApiConfigFields::KEY => 'test_key'
]);
$this->assertEquals($gm->getKey(), 'test_key');
$this->assertEquals($gm->getServiceEndpoint(), 'geocode');
}