| Conditions | 4 |
| Paths | 4 |
| Total Lines | 26 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __construct(string $expectedResponse) |
||
| 24 | { |
||
| 25 | switch ($expectedResponse) { |
||
| 26 | case 'ValidResponse': |
||
| 27 | $this->response = new Response( |
||
| 28 | 200, |
||
| 29 | [], |
||
| 30 | $this->createStreamFromXmlFile(__DIR__ . '/../../resources/eurofxref-daily-valid.xml') |
||
| 31 | ); |
||
| 32 | break; |
||
| 33 | case 'UsdMissingResponse': |
||
| 34 | $this->response = new Response( |
||
| 35 | 200, |
||
| 36 | [], |
||
| 37 | $this->createStreamFromXmlFile(__DIR__ . '/../../resources/eurofxref-daily-usd-missing.xml') |
||
| 38 | ); |
||
| 39 | break; |
||
| 40 | case 'DateMissingResponse': |
||
| 41 | $this->response = new Response( |
||
| 42 | 200, |
||
| 43 | [], |
||
| 44 | $this->createStreamFromXmlFile(__DIR__ . '/../../resources/eurofxref-daily-date-missing.xml') |
||
| 45 | ); |
||
| 46 | break; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 74 | } |