Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class TestBag implements TestBagInterface, ProviderAwareInterface |
||
19 | { |
||
20 | use ProviderAwareTrait; |
||
21 | |||
22 | /** |
||
23 | * @var TestInterface[] |
||
24 | */ |
||
25 | private $tests = []; |
||
26 | |||
27 | /** |
||
28 | * @param TestInterface[] $tests |
||
29 | */ |
||
30 | 40 | public function __construct(array $tests) |
|
31 | { |
||
32 | 40 | foreach ($tests as $test) { |
|
33 | 40 | $this->add($test); |
|
34 | } |
||
35 | 40 | } |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 31 | public function getTests() |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param TestInterface $test |
||
47 | */ |
||
48 | 40 | private function add(TestInterface $test) |
|
53 |