(t *testing.T)
| 3763 | } |
| 3764 | |
| 3765 | func TestPrintStmtTraitMethodRef(t *testing.T) { |
| 3766 | o := bytes.NewBufferString("") |
| 3767 | |
| 3768 | p := printer.NewPrettyPrinter(o, " ") |
| 3769 | p.Print(&stmt.TraitMethodRef{ |
| 3770 | Trait: &name.Name{Parts: []node.Node{&name.NamePart{Value: "Foo"}}}, |
| 3771 | Method: &node.Identifier{Value: "a"}, |
| 3772 | }) |
| 3773 | |
| 3774 | expected := `Foo::a` |
| 3775 | actual := o.String() |
| 3776 | |
| 3777 | if expected != actual { |
| 3778 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 3779 | } |
| 3780 | } |
| 3781 | |
| 3782 | func TestPrintStmtTraitUseAlias(t *testing.T) { |
| 3783 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…