displayGraph() public method

public displayGraph ( )
 public function testWillDisplayGraph()
 {
     $dir = __DIR__ . '/../';
     $graphviz = $this->getMock('Graphp\\GraphViz\\GraphViz');
     $graphviz->expects($this->once())->method('display');
     $graphComposer = new GraphComposer($dir, $graphviz);
     $graphComposer->displayGraph();
 }
Beispiel #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $graph = new GraphComposer($input->getArgument('dir'));
     $graph->setFormat($input->getOption('format'));
     $graph->displayGraph();
 }