mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
And make it work on PHP 5 as well...
This commit is contained in:
parent
91295a0790
commit
3028bc8081
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user