Upgrade minimal version of php

This commit is contained in:
Jérémy Derussé
2019-08-08 00:30:12 +02:00
parent ee35a9129d
commit 074e46ae33
5 changed files with 3 additions and 20 deletions
-3
View File
@@ -27,9 +27,6 @@ script: ./vendor/bin/simple-phpunit
jobs: jobs:
fast_finish: true fast_finish: true
include: include:
- php: 5.4
- php: 5.4
env: TWIG_EXT=yes
- php: 5.5 - php: 5.5
- php: 5.5 - php: 5.5
env: TWIG_EXT=yes env: TWIG_EXT=yes
+1
View File
@@ -2,6 +2,7 @@
* fixed the "empty" test on Traversable instances * fixed the "empty" test on Traversable instances
* fixed cache when opcache is installed but disabled * fixed cache when opcache is installed but disabled
* upgrade minimal php version to 5.5
* 1.42.2 (2019-06-18) * 1.42.2 (2019-06-18)
+1 -1
View File
@@ -24,7 +24,7 @@
} }
], ],
"require": { "require": {
"php": ">=5.4.0", "php": ">=5.5.0",
"symfony/polyfill-ctype": "^1.8" "symfony/polyfill-ctype": "^1.8"
}, },
"require-dev": { "require-dev": {
+1 -1
View File
@@ -26,7 +26,7 @@ Slim, Yii, Laravel, and Codeigniter — just to name a few.
Prerequisites Prerequisites
------------- -------------
Twig needs at least **PHP 5.4.0** to run. Twig needs at least **PHP 5.5.0** to run.
Installation Installation
------------ ------------
-15
View File
@@ -41,21 +41,6 @@ class OptimizerTest extends \PHPUnit\Framework\TestCase
$this->assertTrue($node->getAttribute('output')); $this->assertTrue($node->getAttribute('output'));
} }
public function testRenderVariableBlockOptimizer()
{
if (\PHP_VERSION_ID >= 50400) {
$this->markTestSkipped('not needed on PHP >= 5.4');
}
$env = new Environment($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['cache' => false, 'autoescape' => false]);
$stream = $env->parse($env->tokenize(new Source('{{ block(name|lower) }}', 'index')));
$node = $stream->getNode('body')->getNode(0)->getNode(1);
$this->assertInstanceOf('\Twig\Node\Expression\BlockReferenceExpression', $node);
$this->assertTrue($node->getAttribute('output'));
}
/** /**
* @dataProvider getTestsForForOptimizer * @dataProvider getTestsForForOptimizer
*/ */