Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function it_renders_template_events_blocks(): void |
||
24 | { |
||
25 | self::bootKernel(); |
||
26 | |||
27 | /** @var Environment $twig */ |
||
28 | $twig = self::$container->get('twig'); |
||
29 | |||
30 | // See Kernel.php for the configuration resulting in those lines |
||
31 | $expectedLines = [ |
||
32 | 'First block', |
||
33 | 'Second block', |
||
34 | 'Third block', |
||
35 | 'The king is dead, long live the king!', |
||
36 | ]; |
||
37 | $renderedLines = array_values(array_filter(explode("\n", $twig->render('templateEvents.txt.twig')))); |
||
38 | |||
39 | Assert::assertSame($expectedLines, $renderedLines); |
||
40 | } |
||
41 | } |
||
42 |