public function ContainerTest::test_underscore in Service Container 7
Same name and namespace in other branches
- 7.2 tests/src/DependencyInjection/ContainerTest.php \Drupal\Tests\service_container\DependencyInjection\ContainerTest::test_underscore()
 
Un-camelizes a string.
@covers ::underscore @dataProvider underscoreCamelizeDataProvider
File
- tests/
src/ DependencyInjection/ ContainerTest.php, line 376  - Contains \Drupal\Tests\service_container\DependencyInjection\ContainerTest
 
Class
- ContainerTest
 - @coversDefaultClass \Drupal\service_container\DependencyInjection\Container @group dic
 
Namespace
Drupal\Tests\service_container\DependencyInjectionCode
public function test_underscore($string_underscore, $string_camelize) {
  $result = $this->container
    ->underscore($string_camelize);
  $this
    ->assertEquals($string_underscore, $result);
}