| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testCallbackPromise() |
||
| 13 | { |
||
| 14 | $things = false; |
||
| 15 | |||
| 16 | $fixer = $this->prophesize(CallbackPromiseTestDummy::class); |
||
| 17 | $fixer->getName()->will(static function (array $arguments) use (&$things) { |
||
|
|
|||
| 18 | return $things |
||
| 19 | ? 'yes' |
||
| 20 | : 'no' |
||
| 21 | ; |
||
| 22 | }); |
||
| 23 | |||
| 24 | $this->assertSame('no', $fixer->reveal()->getName()); |
||
| 25 | } |
||
| 26 | } |
||
| 34 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.