/** * Executes PDepend's text ui command and returns the exit code and shell * output. * * @return array */ protected function runTextUICommand() { $command = new \PDepend\TextUI\Command(); ob_start(); $exitCode = $command->run(); $output = ob_get_clean(); return array($exitCode, $output); }
/** * testFullStackNotRunsEndless * * @return void */ public function testFullStackNotRunsEndless() { set_time_limit(5); $_SERVER['argv'] = array(__FILE__, '--summary-xml=' . $this->createRunResourceURI('jdepend.xml'), '--jdepend-xml=' . $this->createRunResourceURI('summary.xml'), $this->createCodeResourceUriForTest()); ob_start(); $command = new \PDepend\TextUI\Command(); $command->run(); $output = ob_get_clean(); $this->assertContains(' is part of an endless inheritance hierarchy', $output); }