for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* MyPoseo API Bundle
*
* @author Tristan Bessoussa <[email protected]>
*/
namespace Tristanbes\MyPoseoBundle\Api;
use Tristanbes\MyPoseoBundle\Connection\RestClient;
* Class used when the application is in test environment
class SearchMock implements SearchInterface
{
private $client;
public function __construct(RestClient $client)
$this->client = $client;
}
public function getSearchEngineExtensions(string $searchEngine, ?int $ttl = null): array
$data = [];
$data[13]['id'] = 13;
$data[13]['name'] = '.fr (fr)';
return $data;
public function getNaturalSeoResult()
throw new \RuntimeException(sprintf('Method "%s" is not implemented.', __METHOD__));
public function getSemResult()
public function getTownCode(string $name, string $country = 'FR'): array
public function getUrlRankByKeyword(string $keyword, string $url, string $searchEngine = 'google', ?string $callbackUrl = null, ?int $geolocId = null, int $location = 13, ?int $maxPage = null): array