/** * Create CLI instance. * * @return Application */ public static function getInstance() { $questionHelper = new QuestionHelper(); $application = new Application('CloverToHtml Command Line Interface', 'Beta 0.1.0'); $application->getHelperSet()->set(new FormatterHelper(), 'formatter'); $application->getHelperSet()->set($questionHelper, 'question'); $application->add(ConvertCommandFactory::getInstance()); return $application; }
public function testInstance() { $this->assertInstanceOf('\\CloverToHtml\\Command\\ConvertCommand', ConvertCommandFactory::getInstance()); }