#78 fix test
This commit is contained in:
parent
157391bf6d
commit
c86d955571
@ -2429,6 +2429,7 @@ func (p *Printer) printStmtDo(n node.Node) {
|
|||||||
|
|
||||||
func (p *Printer) printStmtEcho(n node.Node) {
|
func (p *Printer) printStmtEcho(n node.Node) {
|
||||||
nn := n.(*stmt.Echo)
|
nn := n.(*stmt.Echo)
|
||||||
|
|
||||||
if nn.GetFreeFloating().IsEmpty() {
|
if nn.GetFreeFloating().IsEmpty() {
|
||||||
io.WriteString(p.w, "echo")
|
io.WriteString(p.w, "echo")
|
||||||
}
|
}
|
||||||
@ -2436,7 +2437,6 @@ func (p *Printer) printStmtEcho(n node.Node) {
|
|||||||
io.WriteString(p.w, " ")
|
io.WriteString(p.w, " ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
p.printFreeFloating(nn, freefloating.Start)
|
p.printFreeFloating(nn, freefloating.Start)
|
||||||
p.printFreeFloating(nn, freefloating.Echo)
|
p.printFreeFloating(nn, freefloating.Echo)
|
||||||
|
|
||||||
|
@ -3279,7 +3279,7 @@ func TestPrinterPrintStmtEchoHtmlState(t *testing.T) {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
expected := `<?=$a,$b;`
|
expected := `<?php echo $a,$b;`
|
||||||
actual := o.String()
|
actual := o.String()
|
||||||
|
|
||||||
if expected != actual {
|
if expected != actual {
|
||||||
|
Loading…
Reference in New Issue
Block a user