Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testTotalAmount() |
||
10 | { |
||
11 | $response = new \stdClass(); |
||
12 | $response->order_total_amount = 1.23; |
||
13 | |||
14 | $taxResponse = new TaxResponse($response); |
||
15 | $this->assertEquals(1.23, $taxResponse->getTotalAmount()); |
||
16 | |||
17 | $response = new \stdClass(); |
||
18 | $response->amount = 1.23; |
||
19 | |||
20 | $taxResponse = new TaxResponse($response); |
||
21 | $this->assertEquals(1.23, $taxResponse->getTotalAmount()); |
||
22 | } |
||
23 | |||
42 |