/** * 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 AbstractCommand Instance of $this to allow chaining. * * @since 2.0 */ public function out($text = '', $nl = true) { $quiet = $this->app ? $this->app->get('quiet', false) : false; if (!$quiet) { $this->io->out($text, $nl); } return $this; }
/** * testGetAndSetConfig * * @return void */ public function testGetAndSetConfig() { $this->instance->set('park.flower', 'sakura'); $this->assertEquals($this->instance->get('park.flower'), 'sakura', 'Config data not matched.'); }