public function execute($params) { require_once __DIR__ . '/Autoload_psr4.php'; $invertor = new \Cli\Invertor\String(); $inverted = $invertor->getInverted($params[1]); $filter = new \Cli\Filter\String\Vowels(); $filtered = $filter->getFiltered($inverted); $template = new \Cli\Template\Php(); $template->setTemplate(__DIR__ . '/Cli/Template/tpl/output.php'); $output = $template->process(array('filtered' => $filtered)); echo $output; }
/** * @dataProvider provider */ public function testHelloWorld($str1, $str2) { $obj = new \Cli\Invertor\String(); assert($obj->getInverted($str1) == $str2); }