mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
45
spec/tests/php/variable_variable.txt
Normal file
45
spec/tests/php/variable_variable.txt
Normal file
@ -0,0 +1,45 @@
|
||||
---input---
|
||||
<?php
|
||||
${'whatever'} = '';
|
||||
${$whatever} = '';
|
||||
${${'whatever' . 'whatever'}} = '';
|
||||
|
||||
---tokens---
|
||||
'<?php' Comment.Preproc
|
||||
'\n' Text
|
||||
|
||||
'${' Name.Variable
|
||||
"'whatever'" Literal.String.Single
|
||||
'}' Name.Variable
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
"''" Literal.String.Single
|
||||
';' Punctuation
|
||||
'\n' Text
|
||||
|
||||
'${' Name.Variable
|
||||
'$whatever' Name.Variable
|
||||
'}' Name.Variable
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
"''" Literal.String.Single
|
||||
';' Punctuation
|
||||
'\n' Text
|
||||
|
||||
'${' Name.Variable
|
||||
'${' Name.Variable
|
||||
"'whatever'" Literal.String.Single
|
||||
' ' Text
|
||||
'.' Operator
|
||||
' ' Text
|
||||
"'whatever'" Literal.String.Single
|
||||
'}' Name.Variable
|
||||
'}' Name.Variable
|
||||
' ' Text
|
||||
'=' Operator
|
||||
' ' Text
|
||||
"''" Literal.String.Single
|
||||
';' Punctuation
|
||||
'\n' Text
|
Reference in New Issue
Block a user