/** * @dataProvider provideStrings * @covers Alchemy\Phrasea\Utilities\String\Camelizer::camelize */ public function testCamelize($string, $separator, $expected, $pascalize) { $camelizer = new Camelizer(); $result = $camelizer->camelize($string, $separator, $pascalize); $this->assertEquals($expected, $result); }
public function toCamelCase($str, $separator = '-', $pascalCase = false) { return $this->camelizer->camelize($str, $separator, $pascalCase); }