/** * @dataProvider camelCaseValues */ public function testCamelCaseWorks($s) { $ts = new \NG\Root\Type\TString($s); $cC = $ts->toCamelCase(); //echo $s . " => " . $cC->value(); $this->assertTrue($cC instanceof \NG\Root\Type\TString); $res = preg_match('/^\\s*([a-z0-9]+)(([A-Z]{1}[a-z0-9]*)+)/', $cC->value()); //var_dump($cC->value()); $this->assertTrue($res); }