/** * Extend run() method to recognize cli mode. * * @param SimpleReporter Reporter for HTML mode * @param SimpleReporter Reporter for CLI mode * @access public */ function run(&$htmlReporter, &$cliReporter) { if (EvoTextReporter::inCli()) { exit(parent::run($cliReporter) ? 0 : 1); } parent::run($htmlReporter); }
/** * Extend run() method to recognize cli mode. * * @param SimpleReporter Reporter for HTML mode * @param SimpleReporter Reporter for CLI mode * @access public */ function run_html_or_cli() { if (EvoTextReporter::inCli()) { exit(parent::run(new EvoTextReporter()) ? 0 : 1); } parent::run(new EvoHtmlReporter()); }