xref: /php-ast/tests/nop_statements.phpt (revision 91f59467)
1--TEST--
2Nop statements
3--FILE--
4<?php
5
6require __DIR__ . '/../util.php';
7
8$code = <<<'PHP'
9<?php
10$a;
11;
12$b;
13PHP;
14
15echo ast_dump(ast\parse_code($code, $version=70)), "\n";
16
17?>
18--EXPECT--
19AST_STMT_LIST
20    0: AST_VAR
21        name: "a"
22    1: AST_VAR
23        name: "b"
24