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