| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | public function testPut(): void |
||
| 15 | { |
||
| 16 | $commandBus = $this->createMock(CommandBus::class); |
||
| 17 | $counter = 0; |
||
| 18 | $beforePut = static function (JobInterface $job) use (&$counter) { |
||
|
|
|||
| 19 | $counter++; |
||
| 20 | }; |
||
| 21 | |||
| 22 | $jobQueue = new Synchronous($commandBus, $beforePut); |
||
| 23 | $job = new HelloJob('Test'); |
||
| 24 | $jobQueue->putJob($job); |
||
| 25 | $this->assertEquals(1, $counter); |
||
| 26 | } |
||
| 28 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.