the whole shebang
This commit is contained in:
34
vendor/nikic/php-parser/test/code/parser/expr/exit.test
vendored
Normal file
34
vendor/nikic/php-parser/test/code/parser/expr/exit.test
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
Exit
|
||||
-----
|
||||
<?php
|
||||
exit;
|
||||
exit();
|
||||
exit('Die!');
|
||||
die;
|
||||
die();
|
||||
die('Exit!');
|
||||
-----
|
||||
array(
|
||||
0: Expr_Exit(
|
||||
expr: null
|
||||
)
|
||||
1: Expr_Exit(
|
||||
expr: null
|
||||
)
|
||||
2: Expr_Exit(
|
||||
expr: Scalar_String(
|
||||
value: Die!
|
||||
)
|
||||
)
|
||||
3: Expr_Exit(
|
||||
expr: null
|
||||
)
|
||||
4: Expr_Exit(
|
||||
expr: null
|
||||
)
|
||||
5: Expr_Exit(
|
||||
expr: Scalar_String(
|
||||
value: Exit!
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user