mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-20 07:03:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
28
spec/tests/php/anonymous_class.txt
Normal file
28
spec/tests/php/anonymous_class.txt
Normal file
@ -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
|
Reference in New Issue
Block a user