| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function provideTestInput(): Generator |
||
| 26 | { |
||
| 27 | yield 'for item foo' => [ |
||
| 28 | 'input' => [ |
||
| 29 | new Item('foo', 0, 1), |
||
| 30 | ], |
||
| 31 | 'output' => [ |
||
| 32 | new Item('foo', -1, 0), |
||
| 33 | ], |
||
| 34 | 'expected' => '[foo, 0, 1] -> [foo, -1, 0]', |
||
| 35 | ]; |
||
| 36 | |||
| 37 | yield 'for item bar' => [ |
||
| 38 | 'input' => [ |
||
| 39 | new Item('bar', 1, 1), |
||
| 40 | new Item('bar', 1, 0), |
||
| 41 | new Item('bar', 1, 100), |
||
| 42 | ], |
||
| 43 | 'output' => [ |
||
| 44 | new Item('bar', -1, 0), |
||
| 45 | new Item('bar', 1, 10), |
||
| 46 | new Item('bar', -1, 50), |
||
| 47 | ], |
||
| 48 | 'expected' => '[bar, 1, 1] -> [bar, -1, 0] |
||
| 49 | [bar, 1, 0] -> [bar, 1, 10] |
||
| 54 |