Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | |||
27 | private function configureStatement(MockObject $stmt, int &$calls) : void |
||
28 | { |
||
29 | $values = ['foo', '', 'bar', '0', 'baz', 0, 'qux', null, 'quz', false, 'impossible']; |
||
30 | $calls = 0; |
||
31 | |||
32 | $stmt->expects($this->exactly(10)) |
||
33 | ->method('fetch') |
||
34 | ->willReturnCallback(static function () use ($values, &$calls) { |
||
35 | $value = $values[$calls]; |
||
49 |