1 | <?php |
||
8 | class RequestMock extends Request |
||
9 | { |
||
10 | public function fetch(array $data): ResponseInterface |
||
11 | { |
||
12 | if ($this->getUrl() === 'http://www.JOI.com/schemas/ViaSub.WMS/FindOrders') { |
||
13 | return new ResponseMock(file_get_contents(__DIR__ . '/../files/findOrders/response.xml')); |
||
14 | } |
||
15 | throw new \Exception; |
||
16 | } |
||
17 | } |
||
18 |