protected function displayConverter(InputInterface $input, OutputInterface $output) { $output->writeln('Available columns converters'); $output->writeln(''); foreach (Converter::getAvailableConvertMethods() as $converter) { $output->writeln('<info>' . $converter . '</info>'); } $output->writeln(''); }
/** * * @param string $convertMethod * @return Column */ public function setConvertMethod($convertMethod) { $this->convertMethod = in_array($convertMethod, Converter::getAvailableConvertMethods()) ? $convertMethod : null; return $this; }
/** * @covers CSanquer\FakeryGenerator\Helper\Converter::getAvailableConvertMethods */ public function testGetAvailableConvertMethods() { $this->assertEquals(['lowercase', 'uppercase', 'capitalize', 'capitalize_words', 'absolute', 'as_bool', 'as_int', 'as_float', 'as_string', 'remove_accents', 'remove_accents_lowercase', 'remove_accents_uppercase', 'remove_accents_capitalize', 'remove_accents_capitalize_words'], Converter::getAvailableConvertMethods()); }