Files
PHP-Parser/test/code/parser/expr/shellExec.test
Nikita Popov 9a5d5c112c Add newline at end of file for many tests
Add the newline in reconstructTest() and run updateTests.php, to
reduce spurious diffs in the future.
2023-05-20 19:18:11 +02:00

57 lines
1.1 KiB
Plaintext

Shell execution
-----
<?php
``;
`test`;
`test $A`;
`test \``;
`test \"`;
-----
array(
0: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
)
)
)
1: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: InterpolatedStringPart(
value: test
)
)
)
)
2: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: InterpolatedStringPart(
value: test
)
1: Expr_Variable(
name: A
)
)
)
)
3: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: InterpolatedStringPart(
value: test `
)
)
)
)
4: Stmt_Expression(
expr: Expr_ShellExec(
parts: array(
0: InterpolatedStringPart(
value: test \"
)
)
)
)
)