/** * 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 PHP_Depend_TextUI_Command(); $command->run(); $output = ob_get_clean(); $this->assertContains(' is part of an endless inheritance hierarchy', $output); }
/** * Main method that starts the command line runner. * * @return integer The exit code. */ public static function main() { $command = new PHP_Depend_TextUI_Command(); return $command->run(); }
/** * Executes PHP_Depend's text ui command and returns the exit code and shell * output. * * @return array */ protected function runTextUICommand() { $command = new PHP_Depend_TextUI_Command(); ob_start(); $exitCode = $command->run(); $output = ob_get_clean(); return array($exitCode, $output); }