public function testRender_StretchedAndColorized() { $figlet = new Figlet(); $figlet->setFontStretching(1)->setFontColor('red')->setBackgroundColor('light_gray'); $output = $figlet->render('Test'); $this->assertEquals($this->getModifiedDefaultBigFontText("0;31", "47"), $output); }
/** * @inheritdoc */ protected function execute(InputInterface $input, OutputInterface $output) { $figlet = new Figlet(); $figlet->setFont($input->getOption('font')); if (null !== $input->getOption('color')) { $figlet->setFontColor($input->getOption('color')); } if (null !== $input->getOption('bg-color')) { $figlet->setBackgroundColor($input->getOption('bg-color')); } if (null !== $input->getOption('stretching')) { $figlet->setFontStretching($input->getOption('stretching')); } $output->write($figlet->render($input->getArgument('text'))); return 0; }