| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | function it_processes_an_item(Step $step) |
||
| 21 | { |
||
| 22 | $converter = function($item) { |
||
| 23 | return $item; |
||
| 24 | }; |
||
| 25 | $this->beConstructedWith([$converter]); |
||
| 26 | |||
| 27 | $next = function() {}; |
||
| 28 | $item = []; |
||
| 29 | $item2 = ['item2']; |
||
| 30 | $step->process($item2, $next)->willReturn(true); |
||
| 31 | |||
| 32 | $this->add(function($item) use($item2) { |
||
|
|
|||
| 33 | return $item2; |
||
| 34 | }); |
||
| 35 | |||
| 36 | $this->process( |
||
| 37 | $item, |
||
| 38 | function($item) use ($step, $next) { |
||
| 39 | return $step->process($item, $next); |
||
| 40 | } |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.