You are here

public function ContainerTest::test_camelize in Service Container 7

Same name and namespace in other branches
  1. 7.2 tests/src/DependencyInjection/ContainerTest.php \Drupal\Tests\service_container\DependencyInjection\ContainerTest::test_camelize()

Camelizes a string.

@covers ::camelize @dataProvider underscoreCamelizeDataProvider

File

tests/src/DependencyInjection/ContainerTest.php, line 365
Contains \Drupal\Tests\service_container\DependencyInjection\ContainerTest

Class

ContainerTest
@coversDefaultClass \Drupal\service_container\DependencyInjection\Container @group dic

Namespace

Drupal\Tests\service_container\DependencyInjection

Code

public function test_camelize($string_underscore, $string_camelize) {
  $result = $this->container
    ->camelize($string_underscore);
  $this
    ->assertEquals($string_camelize, $result);
}