php-parser/test/code/parser/expr/exit.test

46 lines
718 B
Plaintext
Raw Normal View History

2011-11-27 11:20:35 +01:00
Exit
-----
<?php
exit;
exit();
exit('Die!');
die;
die();
die('Exit!');
-----
array(
2017-01-19 22:25:22 +01:00
0: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
2011-11-27 11:20:35 +01:00
)
2017-01-19 22:25:22 +01:00
1: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
2011-11-27 11:20:35 +01:00
)
2017-01-19 22:25:22 +01:00
2: Stmt_Expression(
expr: Expr_Exit(
expr: Scalar_String(
value: Die!
)
2011-11-27 11:20:35 +01:00
)
)
2017-01-19 22:25:22 +01:00
3: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
2011-11-27 11:20:35 +01:00
)
2017-01-19 22:25:22 +01:00
4: Stmt_Expression(
expr: Expr_Exit(
expr: null
)
2011-11-27 11:20:35 +01:00
)
2017-01-19 22:25:22 +01:00
5: Stmt_Expression(
expr: Expr_Exit(
expr: Scalar_String(
value: Exit!
)
2011-11-27 11:20:35 +01:00
)
)
)