Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testWriteItem() |
||
23 | { |
||
24 | $string = ''; |
||
25 | $callable = function(array $item) use (&$string) { |
||
26 | $string = implode(',', array_values($item)); |
||
27 | }; |
||
28 | |||
29 | $writer = new CallbackWriter($callable); |
||
30 | $writer->writeItem(array('foo' => 'bar', 'bar' => 'foo')); |
||
31 | |||
32 | $this->assertEquals('bar,foo', $string); |
||
33 | } |
||
34 | |||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.