You are here

public function ContainerTest::dataForTestCamelize in Zircon Profile 8.0

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

File

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