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