TextDescriptorTest.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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\TextDescriptor;
  12. use Symfony\Component\Console\Tests\Fixtures\DescriptorApplicationMbString;
  13. use Symfony\Component\Console\Tests\Fixtures\DescriptorCommandMbString;
  14. class TextDescriptorTest extends AbstractDescriptorTest
  15. {
  16. public function getDescribeCommandTestData()
  17. {
  18. return $this->getDescriptionTestData(array_merge(
  19. ObjectsProvider::getCommands(),
  20. array('command_mbstring' => new DescriptorCommandMbString())
  21. ));
  22. }
  23. public function getDescribeApplicationTestData()
  24. {
  25. return $this->getDescriptionTestData(array_merge(
  26. ObjectsProvider::getApplications(),
  27. array('application_mbstring' => new DescriptorApplicationMbString())
  28. ));
  29. }
  30. protected function getDescriptor()
  31. {
  32. return new TextDescriptor();
  33. }
  34. protected function getFormat()
  35. {
  36. return 'txt';
  37. }
  38. }