mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Fix lexer tests for HHVM
HHVM does not throw warnings from token_get_all() for invalid chars and unterminated comments. This is not really integral functionality, so I'm okay to just skip it to get a passing HHVM build.
This commit is contained in:
parent
3028bc8081
commit
d56ff5a351
@ -11,5 +11,4 @@ php:
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: 7.0
|
||||
- php: hhvm
|
||||
fast_finish: true
|
||||
|
@ -13,6 +13,10 @@ class LexerTest extends \PHPUnit_Framework_TestCase
|
||||
* @dataProvider provideTestError
|
||||
*/
|
||||
public function testError($code, $message) {
|
||||
if (defined('HHVM_VERSION')) {
|
||||
$this->markTestSkipped('HHVM does not throw warnings from token_get_all()');
|
||||
}
|
||||
|
||||
$lexer = $this->getLexer();
|
||||
try {
|
||||
$lexer->startLexing($code);
|
||||
|
Loading…
Reference in New Issue
Block a user