MarkdownDescriptorTest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Console\Tests\Descriptor;
  11. use Symfony\Component\Console\Descriptor\MarkdownDescriptor;
  12. use Symfony\Component\Console\Tests\Fixtures\DescriptorApplicationMbString;
  13. use Symfony\Component\Console\Tests\Fixtures\DescriptorCommandMbString;
  14. class MarkdownDescriptorTest extends AbstractDescriptorTest
  15. {
  16. public function getDescribeCommandTestData()
  17. {
  18. return $this->getDescriptionTestData(array_merge(
  19. ObjectsProvider::getCommands(),
  20. ['command_mbstring' => new DescriptorCommandMbString()]
  21. ));
  22. }
  23. public function getDescribeApplicationTestData()
  24. {
  25. return $this->getDescriptionTestData(array_merge(
  26. ObjectsProvider::getApplications(),
  27. ['application_mbstring' => new DescriptorApplicationMbString()]
  28. ));
  29. }
  30. protected function getDescriptor()
  31. {
  32. return new MarkdownDescriptor();
  33. }
  34. protected function getFormat()
  35. {
  36. return 'md';
  37. }
  38. }