Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function test() { |
||
25 | $error = new Error( |
||
26 | 1004, |
||
27 | 'Property not found in request: body.card.number.', |
||
28 | 'Property not found in request: body.card.number.' |
||
29 | ); |
||
30 | |||
31 | $this->assertInstanceOf( Error::class, $error ); |
||
32 | $this->assertEquals( 1004, $error->getCode() ); |
||
33 | $this->assertEquals( 1004, $error->get_code() ); |
||
34 | $this->assertEquals( 'Property not found in request: body.card.number.', $error->getMessage() ); |
||
35 | $this->assertEquals( 'Property not found in request: body.card.number.', $error->get_message() ); |
||
36 | } |
||
52 |