Sha256: dba1a6e7dc8d56d382ff8870e1958c01a6302d17cd5bf6bea42d915175d8835b

Contents?: true

Size: 1.54 KB

Versions: 18

Compression:

Stored size: 1.54 KB

Contents

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Tests\Descriptor;

use Symfony\Component\Console\Descriptor\TextDescriptor;
use Symfony\Component\Console\Tests\Fixtures\DescriptorApplication2;
use Symfony\Component\Console\Tests\Fixtures\DescriptorApplicationMbString;
use Symfony\Component\Console\Tests\Fixtures\DescriptorCommandMbString;

class TextDescriptorTest extends AbstractDescriptorTest
{
    public function getDescribeCommandTestData()
    {
        return $this->getDescriptionTestData(array_merge(
            ObjectsProvider::getCommands(),
            ['command_mbstring' => new DescriptorCommandMbString()]
        ));
    }

    public function getDescribeApplicationTestData()
    {
        return $this->getDescriptionTestData(array_merge(
            ObjectsProvider::getApplications(),
            ['application_mbstring' => new DescriptorApplicationMbString()]
        ));
    }

    public function testDescribeApplicationWithFilteredNamespace()
    {
        $application = new DescriptorApplication2();

        $this->assertDescription(file_get_contents(__DIR__.'/../Fixtures/application_filtered_namespace.txt'), $application, ['namespace' => 'command4']);
    }

    protected function getDescriptor()
    {
        return new TextDescriptor();
    }

    protected function getFormat()
    {
        return 'txt';
    }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dependabot-composer-0.119.0.beta1 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.113.19 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.112.1 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.57 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.56 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.52 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.50 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.25 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.17 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.111.15 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.110.13 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.108.11 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.108.8 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.107.47 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.107.39 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.107.36 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.107.28 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php
dependabot-composer-0.107.14 helpers/vendor/symfony/console/Tests/Descriptor/TextDescriptorTest.php