示例#1
0
文件: Default.php 项目: aazon/sfm
 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;
 }
示例#2
0
文件: HelperTest.php 项目: aazon/sfm
 /**
  * @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'));
 }