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