| Total Complexity | 4 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class BlockTest extends TestCase |
||
| 13 | { |
||
| 14 | public function testBlock() |
||
| 15 | { |
||
| 16 | Block::begin() |
||
| 17 | ->id('testme') |
||
| 18 | ->init(); |
||
| 19 | |||
| 20 | echo '<block-testme>'; |
||
| 21 | |||
| 22 | Block::end(); |
||
| 23 | |||
| 24 | $this->assertStringContainsString('<block-testme>', $this->webView->getBlock('testme')); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testBlockRenderInPlaceTrue() |
||
| 42 | } |
||
| 43 | |||
| 44 | public function testGetBlockException() |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @see https://github.com/yiisoft/yii2/issues/15536 |
||
| 52 | */ |
||
| 53 | public function testShouldTriggerInitEvent() |
||
| 71 | } |
||
| 72 | } |
||
| 73 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.