/** * Test the out method. * * @return void * * @since 1.0 * * @covers Joomla\Console\Command\AbstractCommand::out */ public function testOut() { $this->instance->getOutput()->setOutput(''); $this->instance->out('gogo', false); $this->assertEquals('gogo', $this->instance->getOutput()->getOutput()); }
/** * Write a string to standard output. * * @param string $text The text to display. * @param boolean $nl True (default) to append a new line at the end of the output string. * * @return Command Instance of $this to allow chaining. * * @since 1.0 */ public function out($text = '', $nl = true) { $this->command->out($text, $nl); return $this; }