You are here

public function ContainerTest::dataForTestCamelize 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::dataForTestCamelize()

File

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

Class

ContainerTest

Namespace

Symfony\Component\DependencyInjection\Tests

Code

public function dataForTestCamelize() {
  return array(
    array(
      'foo_bar',
      'FooBar',
    ),
    array(
      'foo.bar',
      'Foo_Bar',
    ),
    array(
      'foo.bar_baz',
      'Foo_BarBaz',
    ),
    array(
      'foo._bar',
      'Foo_Bar',
    ),
    array(
      'foo_.bar',
      'Foo_Bar',
    ),
    array(
      '_foo',
      'Foo',
    ),
    array(
      '.foo',
      '_Foo',
    ),
    array(
      'foo_',
      'Foo',
    ),
    array(
      'foo.',
      'Foo_',
    ),
    array(
      'foo\\bar',
      'Foo_Bar',
    ),
  );
}