| @@ 39-46 (lines=8) @@ | ||
| 36 | */ |
|
| 37 | protected $money; |
|
| 38 | ||
| 39 | protected function setUp() |
|
| 40 | { |
|
| 41 | $this->target = new Target('server', 1); |
|
| 42 | $this->type = new Type('server_traf'); |
|
| 43 | $this->quantity = Quantity::gigabyte(10); |
|
| 44 | $this->money = Money::USD(15); |
|
| 45 | $this->price = new SinglePrice(null, $this->type, $this->target, $this->quantity, $this->money); |
|
| 46 | } |
|
| 47 | ||
| 48 | protected function tearDown() |
|
| 49 | { |
|
| @@ 41-48 (lines=8) @@ | ||
| 38 | */ |
|
| 39 | protected $money; |
|
| 40 | ||
| 41 | protected function setUp() |
|
| 42 | { |
|
| 43 | $this->type = new Type('server_traf'); |
|
| 44 | $this->target = new Target('server', 2); |
|
| 45 | $this->prepaid = Quantity::gigabyte(10); |
|
| 46 | $this->money = Money::USD(15); |
|
| 47 | $this->price = new SinglePrice(5, $this->type, $this->target, $this->prepaid, $this->money); |
|
| 48 | } |
|
| 49 | ||
| 50 | protected function createAction($quantity) |
|
| 51 | { |
|