Skip to content

Commit

Permalink
Added 'providedBy' (#698)
Browse files Browse the repository at this point in the history
* Added 'providedBy'

* Bugfix

* Applied changes from StyleCI
  • Loading branch information
Nyholm committed Jun 17, 2017
1 parent b180244 commit fcda187
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tests/Provider/AbstractHttpProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

namespace Geocoder\Http\Provider\Tests;

use Geocoder\Collection;
use Geocoder\Http\Provider\AbstractHttpProvider;
use Geocoder\Model\AddressCollection;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Http\Client\HttpClient;
use Http\Mock\Client;
use PHPUnit\Framework\TestCase;
Expand All @@ -33,4 +37,19 @@ public function getHttpClient(): HttpClient
{
return parent::getHttpClient();
}

public function geocodeQuery(GeocodeQuery $query): Collection
{
return new AddressCollection([]);
}

public function reverseQuery(ReverseQuery $query): Collection
{
return new AddressCollection([]);
}

public function getName(): string
{
return 'dummy';
}
}

0 comments on commit fcda187

Please sign in to comment.