1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 00:49:40 +01:00
PHP-Parser/test/code/parser/expr/exit.test
2017-01-19 22:25:22 +01:00

46 lines
718 B
Plaintext

Exit
-----
<?php
exit;
exit();
exit('Die!');
die;
die();
die('Exit!');
-----
array(
0: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
)
1: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
)
2: Stmt_Expression(
expr: Expr_Exit(
expr: Scalar_String(
value: Die!
)
)
)
3: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
)
4: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
)
5: Stmt_Expression(
expr: Expr_Exit(
expr: Scalar_String(
value: Exit!
)
)
)
)