| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function test_from_json() { |
||
| 40 | $json = \file_get_contents( __DIR__ . '/../json/payment-response.json', true ); |
||
| 41 | |||
| 42 | $data = \json_decode( $json ); |
||
| 43 | |||
| 44 | $payment_response = PaymentResponse::from_json( $data ); |
||
| 45 | |||
| 46 | $this->assertEquals( ResultCode::PENDING, $payment_response->get_result() ); |
||
| 47 | } |
||
| 49 |