| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 20 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 23 | public function test_it_can_validate_callables()  | 
            ||
| 24 |     { | 
            ||
| 25 |         $function = function() {}; | 
            ||
| 26 | |||
| 27 | $customMethod = new FixtureCustomMethod;  | 
            ||
| 28 | |||
| 29 | $rule = $this->createMock(Rule::class);  | 
            ||
| 30 | |||
| 31 | $rule->expects($this->once())  | 
            ||
| 32 |             ->method('__invoke'); | 
            ||
| 33 | |||
| 34 | $validate = new RuleChain(  | 
            ||
| 35 | 'is_string',  | 
            ||
| 36 | $function,  | 
            ||
| 37 | [$customMethod, 'customMethod'],  | 
            ||
| 38 | $rule  | 
            ||
| 39 | );  | 
            ||
| 40 | |||
| 41 |         $validate('password'); | 
            ||
| 42 | }  | 
            ||
| 43 | }  | 
            ||
| 51 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.