File tree 2 files changed +0
-34
lines changed
spec/drupol/phptree/tests
2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -78,26 +78,4 @@ public function it_can_create_a_graph()
78
78
->render ($ tree )
79
79
->shouldReturn ($ result . PHP_EOL );
80
80
}
81
-
82
- public function it_can_display ()
83
- {
84
- $ visitor = new BreadthFirstVisitor ();
85
- $ graph = new Graph ();
86
- $ graphviz = new GraphViz ();
87
-
88
- $ this ->beConstructedWith ($ visitor , $ graph , $ graphviz );
89
-
90
- $ tree = new ValueNode ('root ' , 2 );
91
-
92
- $ nodes = [];
93
- foreach (\range ('A ' , 'F ' ) as $ letter ) {
94
- $ nodes [] = new ValueNode ($ letter , 2 );
95
- }
96
-
97
- $ tree ->add (...$ nodes );
98
-
99
- $ this
100
- ->display ($ tree )
101
- ->shouldReturn ($ this );
102
- }
103
81
}
Original file line number Diff line number Diff line change @@ -79,18 +79,6 @@ public function getGraph(NodeInterface $node): Graph
79
79
return $ this ->graph ;
80
80
}
81
81
82
- /**
83
- * @param \drupol\phptree\Node\NodeInterface $node
84
- *
85
- * @return $this
86
- */
87
- public function display (NodeInterface $ node ): RendererInterface
88
- {
89
- $ this ->graphviz ->display ($ this ->getGraph ($ node ));
90
-
91
- return $ this ;
92
- }
93
-
94
82
/**
95
83
* @param \drupol\phptree\Node\NodeInterface $node
96
84
*
You can’t perform that action at this time.
0 commit comments