You are here

public function ContainerTest::dataForTestUnderscore in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::dataForTestUnderscore()

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ContainerTest.php, line 66

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function dataForTestUnderscore() {
  return array(
    array(
      'FooBar',
      'foo_bar',
    ),
    array(
      'Foo_Bar',
      'foo.bar',
    ),
    array(
      'Foo_BarBaz',
      'foo.bar_baz',
    ),
    array(
      'FooBar_BazQux',
      'foo_bar.baz_qux',
    ),
    array(
      '_Foo',
      '.foo',
    ),
    array(
      'Foo_',
      'foo.',
    ),
  );
}