This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/nikic/php-parser/test/code/parser/expr/exit.test
2018-11-23 12:29:20 +00:00

46 lines
No EOL
718 B
Text

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!
)
)
)
)