summaryrefslogtreecommitdiff
path: root/ext/tokenizer
diff options
context:
space:
mode:
authorMárcio Almada <marcio3w@gmail.com>2015-09-04 00:45:49 -0300
committerBob Weinand <bobwei9@hotmail.com>2015-09-04 15:02:50 +0200
commitc08b3922dd26ae3854eda918a036209375bdb7f1 (patch)
tree38d46614b3ba13afa2b3ad2d0c22b151ab1e13d6 /ext/tokenizer
parent26e619b1923e481be5a281738835e4f92a44fbfe (diff)
downloadphp-git-c08b3922dd26ae3854eda918a036209375bdb7f1.tar.gz
adds missing tokens to list of semi-reserved words and regenerates test suite
Diffstat (limited to 'ext/tokenizer')
-rw-r--r--ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt31
1 files changed, 19 insertions, 12 deletions
diff --git a/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt b/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt
index eb0e300964..fc166e2fc6 100644
--- a/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt
+++ b/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt
@@ -11,6 +11,7 @@ $x->$continue;
X::continue();
$x->continue();
X::class;
+$x->__halt_compiler();
class X {
const CONTINUE = 1;
@@ -60,22 +61,28 @@ L7: T_STRING X
L7: T_DOUBLE_COLON ::
L7: T_STRING class
;
-L9: T_CLASS class
-L9: T_STRING X
+L8: T_VARIABLE $x
+L8: T_OBJECT_OPERATOR ->
+L8: T_STRING __halt_compiler
+(
+)
+;
+L10: T_CLASS class
+L10: T_STRING X
{
-L10: T_CONST const
-L10: T_STRING CONTINUE
+L11: T_CONST const
+L11: T_STRING CONTINUE
=
-L10: T_LNUMBER 1
+L11: T_LNUMBER 1
;
-L11: T_PUBLIC public
-L11: T_VARIABLE $x
+L12: T_PUBLIC public
+L12: T_VARIABLE $x
=
-L11: T_STRING self
-L11: T_DOUBLE_COLON ::
-L11: T_STRING CONTINUE
+L12: T_STRING self
+L12: T_DOUBLE_COLON ::
+L12: T_STRING CONTINUE
+
-L11: T_LNUMBER 1
+L12: T_LNUMBER 1
;
}
-Done
+Done \ No newline at end of file