Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | public function testRender(): void |
||
15 | { |
||
16 | // setup |
||
17 | $template = new HtmlTemplate(__DIR__ . '/res/'); |
||
18 | $template->setPageVar('block', 'BLOCK!!!'); |
||
19 | $view = new ViewStatic($template, 'block'); |
||
20 | |||
21 | // test body |
||
22 | $content = $view->render(); |
||
23 | |||
24 | // assertions |
||
25 | $this->assertEquals('some BLOCK!!! {unexisting-var}', $content); |
||
26 | $this->assertEquals('block', $view->getViewName()); |
||
27 | } |
||
43 |