/** * @covers Zepto\Console::option() * @covers Zepto\Console::parse_option() * @covers Zepto\Console::set_option() * @covers Zepto\Console::param() * @covers Zepto\Console::set_param() * @covers Zepto\Console::output_help() */ public function testOutputHelpShortened() { $zep = new Console(array('zep', '-p', '--help')); $zep->option('-p, --peppers', 'Add peppers'); $zep->option('-c, --cheese [type]', 'Add a cheese'); $zep->option('-m, --mayo', 'Add mayonaise'); $zep->option('-b, --bread [type]', 'Type of bread', true); $zep->param('client', 'Name of client', true); $zep->param('locale', 'Client locale'); $zep->output_help(TRUE); $this->expectOutputString("\nUsage: zep <client> [locale] [options]\n"); }