You are here

private function AbstractDescriptorTest::getDescriptionTestData 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::getDescriptionTestData()
5 calls to AbstractDescriptorTest::getDescriptionTestData()
AbstractDescriptorTest::getDescribeApplicationTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
AbstractDescriptorTest::getDescribeCommandTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
AbstractDescriptorTest::getDescribeInputArgumentTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
AbstractDescriptorTest::getDescribeInputDefinitionTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php
AbstractDescriptorTest::getDescribeInputOptionTestData in vendor/symfony/console/Tests/Descriptor/AbstractDescriptorTest.php

File

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

Class

AbstractDescriptorTest

Namespace

Symfony\Component\Console\Tests\Descriptor

Code

private function getDescriptionTestData(array $objects) {
  $data = array();
  foreach ($objects as $name => $object) {
    $description = file_get_contents(sprintf('%s/../Fixtures/%s.%s', __DIR__, $name, $this
      ->getFormat()));
    $data[] = array(
      $object,
      $description,
    );
  }
  return $data;
}