1--TEST--
2ast\parse_file() on file with parse error
3--FILE--
4<?php
5
6try {
7    ast\parse_file(__DIR__ . '/invalid_file.php', $version=70);
8} catch (ParseError $e) {
9    echo $e, "\n";
10}
11
12?>
13--EXPECTF--
14ParseError: syntax error, unexpected %s)%s in %stests/invalid_file.php:3
15Stack trace:
16#0 %s(%d): ast\parse_file('%s', %d)
17#1 {main}
18