(t *testing.T)
| 4162 | } |
| 4163 | |
| 4164 | func TestPrinterPrintStmtThrow(t *testing.T) { |
| 4165 | o := bytes.NewBufferString("") |
| 4166 | |
| 4167 | p := printer.NewPrinter(o) |
| 4168 | p.Print(&stmt.Throw{ |
| 4169 | Expr: &expr.Variable{ |
| 4170 | VarName: &node.Identifier{Value: "var"}, |
| 4171 | }, |
| 4172 | }) |
| 4173 | |
| 4174 | expected := `throw $var;` |
| 4175 | actual := o.String() |
| 4176 | |
| 4177 | if expected != actual { |
| 4178 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 4179 | } |
| 4180 | } |
| 4181 | |
| 4182 | func TestPrinterPrintStmtTraitAdaptationList(t *testing.T) { |
| 4183 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…