| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 6 | private function createTestDoubleWithPhpunit(array $types): MockObject |
|
| 34 | { |
||
| 35 | 6 | $normalisedTypes = \array_shift($types) ?? \stdClass::class; |
|
| 36 | |||
| 37 | 6 | return $this->getMockBuilder($normalisedTypes) |
|
| 38 | 6 | ->disableOriginalConstructor() |
|
| 39 | 6 | ->disableOriginalClone() |
|
| 40 | 6 | ->disableArgumentCloning() |
|
| 41 | 6 | ->disableProxyingToOriginalMethods() |
|
| 42 | 6 | ->disallowMockingUnknownTypes() |
|
| 43 | 6 | ->getMock(); |
|
| 44 | } |
||
| 46 |