public function displayGraph()
{
$graph = $this->createGraph();
$this->graphviz->display($graph);
}
public function testWillDisplayGraph() { $dir = __DIR__ . '/../'; $graphviz = $this->getMock('Graphp\\GraphViz\\GraphViz'); $graphviz->expects($this->once())->method('display'); $graphComposer = new GraphComposer($dir, $graphviz); $graphComposer->displayGraph(); }