Skip to content

Commit 72bb2ba

Browse files
committed
Remove the display method and its test.
1 parent c563912 commit 72bb2ba

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

spec/drupol/phptree/tests/TestGraphVizSpec.php

-22
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,4 @@ public function it_can_create_a_graph()
7878
->render($tree)
7979
->shouldReturn($result . PHP_EOL);
8080
}
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-
}
10381
}

src/Render/GraphViz.php

-12
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,6 @@ public function getGraph(NodeInterface $node): Graph
7979
return $this->graph;
8080
}
8181

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-
9482
/**
9583
* @param \drupol\phptree\Node\NodeInterface $node
9684
*

0 commit comments

Comments
 (0)