| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | public function testShouldTriggerInitEvent() |
||
| 54 | { |
||
| 55 | $initTriggered = false; |
||
| 56 | |||
| 57 | // adding some listeners |
||
| 58 | $this->listenerProvider->attach(function (BeforeRun $event) use (&$initTriggered) { |
||
|
|
|||
| 59 | $initTriggered = true; |
||
| 60 | }); |
||
| 61 | |||
| 62 | ob_start(); |
||
| 63 | ob_implicit_flush(0); |
||
| 64 | |||
| 65 | Block::begin()->init(); |
||
| 66 | Block::end(); |
||
| 67 | |||
| 68 | ob_get_clean(); |
||
| 69 | |||
| 70 | $this->assertTrue($initTriggered); |
||
| 71 | } |
||
| 73 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.