#62: save the all text after __halt_compiler(); as Meta
This commit is contained in:
@@ -1037,7 +1037,9 @@ func TestParseAndPrintPhp5Goto(t *testing.T) {
|
||||
|
||||
func TestParseAndPrintPhp5HaltCompiler(t *testing.T) {
|
||||
src := `<?php
|
||||
__halt_compiler ( ) ;`
|
||||
__halt_compiler ( ) ;
|
||||
this text is ignored by parser
|
||||
`
|
||||
|
||||
actual := printPhp5(parsePhp5(src))
|
||||
|
||||
|
||||
@@ -1146,7 +1146,9 @@ func TestParseAndPrintGroupUse(t *testing.T) {
|
||||
|
||||
func TestParseAndPrintHaltCompiler(t *testing.T) {
|
||||
src := `<?php
|
||||
__halt_compiler ( ) ;`
|
||||
__halt_compiler ( ) ;
|
||||
this text is ignored by parser
|
||||
`
|
||||
|
||||
actual := print(parse(src))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user