Пример #1
0
 /**
  * Create CLI instance.
  *
  * @return Application
  */
 public static function getInstance(OutputInterface $output)
 {
     $questionHelper = new QuestionHelper();
     $application = new Application('PHP to Zephir Command Line Interface', 'Beta 0.2.0');
     $application->getHelperSet()->set(new FormatterHelper(), 'formatter');
     $application->getHelperSet()->set($questionHelper, 'question');
     $application->add(ConvertFactory::getInstance($output));
     return $application;
 }
 public function testInstance()
 {
     $this->assertInstanceOf('\\PhpToZephir\\Command\\Convert', ConvertFactory::getInstance(new NullOutput()));
 }