Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
31 | 12 | private function createTestDoubleWithProphecy(array $types): ObjectProphecy |
|
32 | { |
||
33 | 12 | $prophecy = $this->prophesize(\array_shift($types)); |
|
34 | |||
35 | 12 | foreach ($types as $type) { |
|
36 | 3 | if (\interface_exists($type)) { |
|
37 | 3 | $prophecy->willImplement($type); |
|
38 | } else { |
||
39 | 3 | $prophecy->willExtend($type); |
|
40 | } |
||
41 | } |
||
42 | |||
43 | 12 | return $prophecy; |
|
44 | } |
||
46 |