And make it work on PHP 5 as well...

This commit is contained in:
Nikita Popov 2015-02-26 16:40:21 +01:00
parent 91295a0790
commit 3028bc8081

View File

@ -132,10 +132,10 @@ EOC;
$parser = new Parser(new Lexer);
$stmts = $parser->parse('<?php 0787; 0177777777777777777777787;');
$this->assertInstanceof($stmts[0], 'PhpParser\Scalar\LNumber');
$this->assertInstanceof($stmts[1], 'PhpParser\Scalar\DNumber');
$this->assertInstanceof('PhpParser\Node\Scalar\LNumber', $stmts[0]);
$this->assertInstanceof('PhpParser\Node\Scalar\DNumber', $stmts[1]);
$this->assertSame(7, $stmts[0]->value);
$this->assertSame(0xFFFFFFFFFFFFFFFF, $stmts[0]->value);
$this->assertSame(0xFFFFFFFFFFFFFFFF, $stmts[1]->value);
}
}