version_name.phpt 556 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Single Application can be executed
  3. --ARGS--
  4. --version
  5. --FILE--
  6. <?php
  7. use Symfony\Component\Console\Input\InputInterface;
  8. use Symfony\Component\Console\Output\OutputInterface;
  9. use Symfony\Component\Console\SingleCommandApplication;
  10. $vendor = __DIR__;
  11. while (!file_exists($vendor.'/vendor')) {
  12. $vendor = dirname($vendor);
  13. }
  14. require $vendor.'/vendor/autoload.php';
  15. (new SingleCommandApplication())
  16. ->setCode(function (InputInterface $input, OutputInterface $output): int {
  17. return 0;
  18. })
  19. ->run()
  20. ;
  21. ?>
  22. --EXPECT--
  23. Console Tool