| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function create(TestCase $testCase, string ...$ids): IIdGenerator |
||
| 20 | { |
||
| 21 | /** @var IIdGenerator|MockObject $idGeneratorMock */ |
||
| 22 | $idGeneratorMock = $testCase->getMockBuilder(IIdGenerator::class)->getMock(); |
||
| 23 | |||
| 24 | $idGeneratorMock |
||
| 25 | ->expects($testCase->exactly(count($ids))) |
||
| 26 | ->method('generate') |
||
| 27 | ->willReturnOnConsecutiveCalls(...$ids); |
||
| 28 | |||
| 29 | return $idGeneratorMock; |
||
|
|
|||
| 30 | } |
||
| 32 |