Completed
Push — master ( 8530e7...2147ca )
by Andrii
02:54
created

SaleTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * PHP Billing Library
4
 *
5
 * @link      https://github.com/hiqdev/php-billing
6
 * @package   php-billing
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\tests\unit\sale;
12
13
use hiqdev\php\billing\action\Action;
14
use hiqdev\php\billing\charge\Charge;
15
use hiqdev\php\billing\sale\Sale;
16
use hiqdev\php\billing\tests\unit\plan\PlanTest;
17
use hiqdev\php\units\Quantity;
18
use hiqdev\php\units\Unit;
19
use Money\Money;
20
21
class SaleTest extends PlanTest
22
{
23
    protected function setUp()
24
    {
25
        parent::setUp();
26
        $this->sale = new Sale(null, $this->plan->verisign, $this->plan->customer, $this->plan);
27
        $this->repository = new SimpleSaleRepository($this->sale);
28
    }
29
}
30