You are here

protected function AbstractDescriptorTest::assertDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php \Symfony\Component\Console\Tests\Descriptor\AbstractDescriptorTest::assertDescription()
5 calls to AbstractDescriptorTest::assertDescription()
AbstractDescriptorTest::testDescribeApplication in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
@dataProvider getDescribeApplicationTestData
AbstractDescriptorTest::testDescribeCommand in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
@dataProvider getDescribeCommandTestData
AbstractDescriptorTest::testDescribeInputArgument in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
@dataProvider getDescribeInputArgumentTestData
AbstractDescriptorTest::testDescribeInputDefinition in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
@dataProvider getDescribeInputDefinitionTestData
AbstractDescriptorTest::testDescribeInputOption in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
@dataProvider getDescribeInputOptionTestData
1 method overrides AbstractDescriptorTest::assertDescription()
JsonDescriptorTest::assertDescription in vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php

File

vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php, line 99

Class

AbstractDescriptorTest

Namespace

Symfony\Component\Console\Tests\Descriptor

Code

protected function assertDescription($expectedDescription, $describedObject) {
  $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
  $this
    ->getDescriptor()
    ->describe($output, $describedObject, array(
    'raw_output' => true,
  ));
  $this
    ->assertEquals(trim($expectedDescription), trim(str_replace(PHP_EOL, "\n", $output
    ->fetch())));
}