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

SaleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
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