protected function real2path($real, $prefix) { $arrParts = array(); foreach (explode($this->speciesDelimiter, $real) as $word) { $arrParts[] = $this->helper->underscore2camel($word); } return implode($this->realDelimiter, $arrParts) . $prefix; }
/** * @covers SFM_Naming_Helper::underscore2camel */ public function testCamel() { $this->assertEquals('helloworld', $this->helper->underscore2camel('helloworld')); $this->assertEquals('helloWorld', $this->helper->underscore2camel('hello_world')); $this->assertEquals('helloworld', $this->helper->underscore2camel('hellOworld')); $this->assertEquals('helloWorld', $this->helper->underscore2camel('hello_world')); $this->assertEquals('helloWorld', $this->helper->underscore2camel('hello__world')); }