Esempio n. 1
0
 /**
  * Test that className() returns a singular camel cased form.
  */
 public function testClassName()
 {
     $this->assertEquals('CamelCase', Inflector::className('camel Case'));
     $this->assertEquals('StudlyCase', Inflector::className('StuDly CaSe'));
     $this->assertEquals('TitleCase', Inflector::className('Title Case'));
     $this->assertEquals('NormalCase', Inflector::className('Normal case'));
     $this->assertEquals('Lowercase', Inflector::className('lowercase'));
     $this->assertEquals('Uppercase', Inflector::className('UPPERCASE'));
     $this->assertEquals('UnderScore', Inflector::className('under_score'));
     $this->assertEquals('DashEs', Inflector::className('dash-es'));
     $this->assertEquals('123Numbers', Inflector::className('123 numbers'));
     $this->assertEquals('WithExtxml', Inflector::className('with EXT.xml'));
     $this->assertEquals('LotsOfWhiteSpace', Inflector::className('lots  of     white space'));
 }