1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 09:29:47 +01:00
PHP-Parser/test/code/parser/scalar/constantString.test
2017-01-19 22:31:29 +01:00

86 lines
1.5 KiB
Plaintext

Constant string syntaxes
-----
<?php
'';
"";
b'';
b"";
'Hi';
b'Hi';
B'Hi';
"Hi";
b"Hi";
B"Hi";
'!\'!\\!\a!';
"!\"!\\!\$!\n!\r!\t!\f!\v!\e!\a";
"!\xFF!\377!\400!\0!";
-----
array(
0: Stmt_Expression(
expr: Scalar_String(
value:
)
)
1: Stmt_Expression(
expr: Scalar_String(
value:
)
)
2: Stmt_Expression(
expr: Scalar_String(
value:
)
)
3: Stmt_Expression(
expr: Scalar_String(
value:
)
)
4: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
5: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
6: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
7: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
8: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
9: Stmt_Expression(
expr: Scalar_String(
value: Hi
)
)
10: Stmt_Expression(
expr: Scalar_String(
value: !'!\!\a!
)
)
11: Stmt_Expression(
expr: Scalar_String(
value: !"!\!$!
!@@{ "\r" }@@!@@{ "\t" }@@!@@{ "\f" }@@!@@{ "\v" }@@!@@{ chr(27) /* "\e" */ }@@!\a
)
)
12: Stmt_Expression(
expr: Scalar_String(
value: !@@{ chr(255) }@@!@@{ chr(255) }@@!@@{ chr(0) }@@!@@{ chr(0) }@@!
)
)
)