mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-11 08:59:46 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
34 lines
432 B
Plaintext
34 lines
432 B
Plaintext
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!
|
|
)
|
|
)
|
|
) |