You are here

public function OptimizedPhpArrayDumperTest::getAliasesDataProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::getAliasesDataProvider()

Data provider for testGetAliases().

Return value

array[] Returns data-set elements with:

  • aliases as returned by ContainerBuilder.
  • aliases as expected in the container definition.

File

core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php, line 115
Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.

Class

OptimizedPhpArrayDumperTest
@coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper @group DependencyInjection

Namespace

Drupal\Tests\Component\DependencyInjection\Dumper

Code

public function getAliasesDataProvider() {
  return array(
    array(
      array(),
      array(),
    ),
    array(
      array(
        'foo' => 'foo.alias',
      ),
      array(
        'foo' => 'foo.alias',
      ),
    ),
    array(
      array(
        'foo' => 'foo.alias',
        'foo.alias' => 'foo.alias.alias',
      ),
      array(
        'foo' => 'foo.alias.alias',
        'foo.alias' => 'foo.alias.alias',
      ),
    ),
  );
}