Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function test_values( $order_response ) { |
||
48 | $filename = dirname( dirname( dirname( __FILE__ ) ) ) . '/Mock/response-status-46-html-answer.html'; |
||
49 | |||
50 | $expected = new OrderResponse(); |
||
51 | $expected->order_id = '1387195001'; |
||
52 | $expected->pay_id = '26187584'; |
||
53 | $expected->nc_error = '0'; |
||
54 | $expected->status = '46'; |
||
55 | $expected->nc_error_plus = 'Identification requested'; |
||
56 | $expected->html_answer = file_get_contents( $filename, true ); |
||
57 | |||
58 | $this->assertEquals( $expected, $order_response ); |
||
59 | } |
||
61 |