1 | <?php |
||
17 | class PlanTest extends \PHPUnit\Framework\TestCase |
||
18 | { |
||
19 | protected function setUp() |
||
23 | |||
24 | public function testCalculateCharges() |
||
25 | { |
||
26 | foreach ($this->plan->types as $type) { |
||
27 | foreach ($this->plan->targets as $target) { |
||
28 | foreach ([1, 2, 3] as $years) { |
||
29 | $usage = Quantity::month($years * 12); |
||
30 | $action = new SimpleAction(null, $type, $target, $usage); |
||
31 | $charges = $this->plan->calculateCharges($action); |
||
32 | $this->checkCharges($action, $charges); |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | |||
38 | public function checkCharges($action, $charges) |
||
52 | } |
||
53 |