1 | <?php |
||
12 | class EcbClientMock implements EcbClientInterface |
||
13 | { |
||
14 | |||
15 | const VALID_RESPONSE = 'ValidResponse'; |
||
16 | const USD_MISSING_RESPONSE = 'UsdMissingResponse'; |
||
17 | const DATE_MISSING_RESPONSE = 'DateMissingResponse'; |
||
18 | |||
19 | /** |
||
20 | * @var ResponseInterface |
||
21 | */ |
||
22 | private $response; |
||
23 | |||
24 | /** |
||
25 | * @param string $expectedResponse |
||
26 | */ |
||
27 | public function __construct(string $expectedResponse) |
||
41 | |||
42 | /** |
||
43 | * @throws ExchangeRatesRequestFailedException |
||
44 | * @return ExchangeRate[] |
||
45 | */ |
||
46 | public function getExchangeRates(): array |
||
51 | |||
52 | /** |
||
53 | * @param string $file |
||
54 | * @return Response |
||
55 | */ |
||
56 | private function createResponseFromFile(string $file) |
||
60 | |||
61 | } |