Skip to content
Permalink
Browse files

Fixed a test on hhvm

  • Loading branch information...
hason committed Aug 4, 2014
1 parent 54da75a commit 0c169ce98c94cb060c03c9ca546e519a55b36657
Showing with 1 addition and 5 deletions.
  1. +0 −4 test/Twig/Tests/LexerTest.php
  2. +1 −1 test/Twig/Tests/NativeExtensionTest.php
@@ -140,10 +140,6 @@ public function testLongBlock()
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 }}';
$lexer = new Twig_Lexer(new Twig_Environment());
@@ -23,7 +23,7 @@ public function testGetProperties()
$d2 = new DateTime();
$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)');
}

0 comments on commit 0c169ce

Please sign in to comment.
You can’t perform that action at this time.