示例#1
0
 /**
  * @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);
 }
示例#2
0
 public function toCamelCase($str, $separator = '-', $pascalCase = false)
 {
     return $this->camelizer->camelize($str, $separator, $pascalCase);
 }