(t *testing.T)
| 4204 | } |
| 4205 | |
| 4206 | func TestPrinterPrintStmtTraitMethodRef(t *testing.T) { |
| 4207 | o := bytes.NewBufferString("") |
| 4208 | |
| 4209 | p := printer.NewPrinter(o) |
| 4210 | p.Print(&stmt.TraitMethodRef{ |
| 4211 | Method: &node.Identifier{Value: "a"}, |
| 4212 | }) |
| 4213 | |
| 4214 | expected := `a` |
| 4215 | actual := o.String() |
| 4216 | |
| 4217 | if expected != actual { |
| 4218 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 4219 | } |
| 4220 | } |
| 4221 | |
| 4222 | func TestPrinterPrintStmtTraitMethodRefFull(t *testing.T) { |
| 4223 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…