コード例 #1
0
 /**
  * @test
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function humanizeCamelCaseConvertsCamelCaseToSpacesAndUppercasesFirstWord()
 {
     $inflector = new \F3\Kickstart\Utility\Inflector();
     $humanized = $inflector->humanizeCamelCase('BlogAuthor');
     $this->assertEquals('Blog author', $humanized);
 }
コード例 #2
0
 /**
  * Humanize a model name
  *
  * @param boolean $lowercase Wether the result should be lowercased 
  * @return string The humanized string
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function render($lowercase = FALSE)
 {
     $content = $this->renderChildren();
     return $this->inflector->humanizeCamelCase($content, $lowercase);
 }