Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function testRemovalWithSimpleTemplate(): void |
||
22 | { |
||
23 | // transchoice tag have been definively removed in sf ^5.0 |
||
24 | // Remove this condition & *with_transchoice templates once sf ^5.0 is the minimum supported version. |
||
25 | if (\version_compare(Kernel::VERSION, 5.0, '<')) { |
||
26 | $expected = $this->parse('simple_template_compiled_with_transchoice.html.twig'); |
||
27 | $actual = $this->parse('simple_template_with_transchoice.html.twig'); |
||
28 | } else { |
||
29 | $expected = $this->parse('simple_template_compiled.html.twig'); |
||
30 | $actual = $this->parse('simple_template.html.twig'); |
||
31 | } |
||
32 | |||
33 | $this->assertEquals($expected, $actual); |
||
34 | } |
||
36 |