removed PHP 5.2 code

This commit is contained in:
Fabien Potencier
2015-07-03 12:15:01 +02:00
parent ff506eb9ab
commit 336320ee2e
+3 -6
View File
@@ -86,12 +86,9 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
}
// avoid using the same PHP class name for different cases
// only for PHP 5.2+
if (PHP_VERSION_ID >= 50300) {
$p = new ReflectionProperty($twig, 'templateClassPrefix');
$p->setAccessible(true);
$p->setValue($twig, '__TwigTemplate_'.hash('sha256', uniqid(mt_rand(), true), false).'_');
}
$p = new ReflectionProperty($twig, 'templateClassPrefix');
$p->setAccessible(true);
$p->setValue($twig, '__TwigTemplate_'.hash('sha256', uniqid(mt_rand(), true), false).'_');
try {
$template = $twig->loadTemplate('index.twig');