This PR was merged into the 1.x branch.
Discussion
----------
Upgrade minimal version of php
Following this comment https://github.com/twigphp/Twig/pull/3103#issuecomment-519282356
Bump the minimal required version of PHP to 5.5
Commits
-------
074e46ae Upgrade minimal version of php
... | ... |
@@ -41,21 +41,6 @@ class OptimizerTest extends \PHPUnit\Framework\TestCase |
41 | 41 |
$this->assertTrue($node->getAttribute('output')); |
42 | 42 |
} |
43 | 43 |
|
44 |
- public function testRenderVariableBlockOptimizer() |
|
45 |
- { |
|
46 |
- if (\PHP_VERSION_ID >= 50400) { |
|
47 |
- $this->markTestSkipped('not needed on PHP >= 5.4'); |
|
48 |
- } |
|
49 |
- |
|
50 |
- $env = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['cache' => false, 'autoescape' => false]); |
|
51 |
- $stream = $env->parse($env->tokenize(new Source('{{ block(name|lower) }}', 'index'))); |
|
52 |
- |
|
53 |
- $node = $stream->getNode('body')->getNode(0)->getNode(1); |
|
54 |
- |
|
55 |
- $this->assertInstanceOf('\Twig\Node\Expression\BlockReferenceExpression', $node); |
|
56 |
- $this->assertTrue($node->getAttribute('output')); |
|
57 |
- } |
|
58 |
- |
|
59 | 44 |
/** |
60 | 45 |
* @dataProvider getTestsForForOptimizer |
61 | 46 |
*/ |