diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/snippets/php/anonymous_class.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/snippets/php/anonymous_class.txt b/tests/snippets/php/anonymous_class.txt new file mode 100644 index 00000000..4f5e2aef --- /dev/null +++ b/tests/snippets/php/anonymous_class.txt @@ -0,0 +1,28 @@ +---input--- +<?php +$containerObject = new class { + public $something; +} + +---tokens--- +'<?php' Comment.Preproc +'\n' Text + +'$containerObject' Name.Variable +' ' Text +'=' Operator +' ' Text +'new' Keyword +' ' Text +'class' Keyword +' ' Text +'{' Punctuation +'\n ' Text +'public' Keyword +' ' Text +'$something' Name.Variable +';' Punctuation +'\n' Text + +'}' Punctuation +'\n' Text |