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