(t *testing.T)
| 3704 | } |
| 3705 | |
| 3706 | func TestPrinterPrintHaltCompiler(t *testing.T) { |
| 3707 | o := bytes.NewBufferString("") |
| 3708 | |
| 3709 | p := printer.NewPrinter(o) |
| 3710 | p.Print(&stmt.HaltCompiler{}) |
| 3711 | |
| 3712 | expected := `__halt_compiler();` |
| 3713 | actual := o.String() |
| 3714 | |
| 3715 | if expected != actual { |
| 3716 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3717 | } |
| 3718 | } |
| 3719 | |
| 3720 | func TestPrinterPrintIfExpression(t *testing.T) { |
| 3721 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…