示例#1
0
 public function testCaseTransform()
 {
     $entity = new Content();
     $underscore = 'bolt_field_example';
     $camel = 'boltFieldExample';
     $camel2 = 'BoltFieldExample';
     $this->assertEquals('BoltFieldExample', $entity->camelize($underscore));
     $this->assertEquals('bolt_field_example', $entity->underscore($camel));
     $this->assertEquals('bolt_field_example', $entity->underscore($camel2));
 }