| 1 | <?php |
||
| 12 | class EcbClientMock implements EcbClientInterface |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var ResponseInterface |
||
| 17 | */ |
||
| 18 | private $response; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $expectedResponse |
||
| 22 | */ |
||
| 23 | public function __construct(string $expectedResponse) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @throws ExchangeRatesRequestFailedException |
||
| 52 | * @return ExchangeRate[] |
||
| 53 | */ |
||
| 54 | public function getExchangeRates(): array |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $file |
||
| 62 | * @return Stream |
||
| 63 | */ |
||
| 64 | private function createStreamFromXmlFile(string $file): Stream |
||
| 73 | |||
| 74 | } |