(t *testing.T)
| 4220 | } |
| 4221 | |
| 4222 | func TestPrinterPrintStmtTraitMethodRefFull(t *testing.T) { |
| 4223 | o := bytes.NewBufferString("") |
| 4224 | |
| 4225 | p := printer.NewPrinter(o) |
| 4226 | p.Print(&stmt.TraitMethodRef{ |
| 4227 | Trait: &name.Name{Parts: []node.Node{&name.NamePart{Value: "Foo"}}}, |
| 4228 | Method: &node.Identifier{Value: "a"}, |
| 4229 | }) |
| 4230 | |
| 4231 | expected := `Foo::a` |
| 4232 | actual := o.String() |
| 4233 | |
| 4234 | if expected != actual { |
| 4235 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 4236 | } |
| 4237 | } |
| 4238 | |
| 4239 | func TestPrinterPrintStmtTraitUseAlias(t *testing.T) { |
| 4240 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…