mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Fixed a test on hhvm
This commit is contained in:
@@ -140,10 +140,6 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testBigNumbers()
|
public function testBigNumbers()
|
||||||
{
|
{
|
||||||
if ('hiphop' === substr(PHP_VERSION, -6)) {
|
|
||||||
$this->markTestSkipped('hhvm thinks that the number is actually a T_CONSTANT_ENCAPSED_STRING!');
|
|
||||||
}
|
|
||||||
|
|
||||||
$template = '{{ 922337203685477580700 }}';
|
$template = '{{ 922337203685477580700 }}';
|
||||||
|
|
||||||
$lexer = new Twig_Lexer(new Twig_Environment());
|
$lexer = new Twig_Lexer(new Twig_Environment());
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
|
|||||||
$d2 = new DateTime();
|
$d2 = new DateTime();
|
||||||
$output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2'));
|
$output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2'));
|
||||||
|
|
||||||
if ('hiphop' === substr(PHP_VERSION, -6)) {
|
if (defined('HHVM_VERSION')) {
|
||||||
$this->markTestSkipped('Skip under HHVM as the behavior is not the same as plain PHP (which is an edge case anyway)');
|
$this->markTestSkipped('Skip under HHVM as the behavior is not the same as plain PHP (which is an edge case anyway)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user