67133ba74c57d0a9068a894e467c29f550a9c65b
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / haltCompiler.test
1 __halt_compiler
2 -----
3 <?php
4
5 $a;
6 __halt_compiler()
7 ?>
8 Hallo World!
9 -----
10 array(
11     0: Expr_Variable(
12         name: a
13     )
14     1: Stmt_HaltCompiler(
15         remaining: Hallo World!
16     )
17 )
18 -----
19 <?php
20
21 $a;
22 __halt_compiler();Hallo World!
23 -----
24 array(
25     0: Expr_Variable(
26         name: a
27     )
28     1: Stmt_HaltCompiler(
29         remaining: Hallo World!
30     )
31 )
32 -----
33 <?php
34
35 namespace A;
36 $a;
37 __halt_compiler();
38 -----
39 array(
40     0: Stmt_Namespace(
41         name: Name(
42             parts: array(
43                 0: A
44             )
45         )
46         stmts: array(
47             0: Expr_Variable(
48                 name: a
49             )
50         )
51     )
52     1: Stmt_HaltCompiler(
53         remaining:
54     )
55 )