| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testExecuteShouldThrowExceptionXmlError() |
||
| 13 | { |
||
| 14 | $this->expectException(\Exception::class); |
||
| 15 | $this->expectExceptionMessage('Não foi possível identificar o XML de retorno.'); |
||
| 16 | |||
| 17 | $ipag = new Ipag(new Authentication('[email protected]'), 'http://google.com.br'); |
||
| 18 | |||
| 19 | $order = $ipag->order() |
||
| 20 | ->setOrderId('100000') |
||
| 21 | ->setCallbackUrl(getenv('CALLBACK_URL')) |
||
| 22 | ->setAmount(10.00) |
||
| 23 | ->setInstallments(1) |
||
| 24 | ->setPayment($ipag->payment() |
||
| 25 | ->setMethod(Method::BANKSLIP_ITAU) |
||
| 26 | ); |
||
| 27 | |||
| 28 | $ipag->transaction()->setOrder($order)->execute(); |
||
| 29 | } |
||
| 31 |