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