/** * Create CLI instance. * * @return Application */ public static function getInstance(OutputInterface $output) { $questionHelper = new QuestionHelper(); $application = new Application('Code Generator Command Line Interface', 'Alpha'); $application->getHelperSet()->set(new FormatterHelper(), 'formatter'); $application->getHelperSet()->set($questionHelper, 'question'); $application->add(ConvertDirectoryFactory::getInstance($output)); return $application; }
public function testInstance() { $this->assertInstanceOf('\\PhpToZephir\\Command\\ConvertDirectory', ConvertDirectoryFactory::getInstance(new NullOutput())); }