You are here

public function ContainerTest::dataForTestUnderscore in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/ContainerTest.php \Symfony\Component\DependencyInjection\Tests\ContainerTest::dataForTestUnderscore()

File

vendor/symfony/dependency-injection/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.',
    ),
  );
}