Chain   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __destruct() 0 4 1
1
<?php
2
3
namespace Imanghafoori\MakeSure;
4
5
class Chain
6
{
7
    public $data = [];
8
9
    private $phpunit;
10
11 11
    public function __construct($phpunit)
12
    {
13 11
        $this->phpunit = $phpunit;
14 11
    }
15
16 14
    public function __destruct()
17
    {
18 14
        (new CheckExpectations($this, $this->phpunit))->check();
19 14
    }
20
}
21