mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
Upgrade minimal version of php
This commit is contained in:
@@ -27,9 +27,6 @@ script: ./vendor/bin/simple-phpunit
|
||||
jobs:
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: 5.4
|
||||
- php: 5.4
|
||||
env: TWIG_EXT=yes
|
||||
- php: 5.5
|
||||
- php: 5.5
|
||||
env: TWIG_EXT=yes
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
* fixed the "empty" test on Traversable instances
|
||||
* fixed cache when opcache is installed but disabled
|
||||
* upgrade minimal php version to 5.5
|
||||
|
||||
* 1.42.2 (2019-06-18)
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"php": ">=5.5.0",
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ Slim, Yii, Laravel, and Codeigniter — just to name a few.
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
Twig needs at least **PHP 5.4.0** to run.
|
||||
Twig needs at least **PHP 5.5.0** to run.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
@@ -41,21 +41,6 @@ class OptimizerTest extends \PHPUnit\Framework\TestCase
|
||||
$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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user