/** * @test * @author Christopher Hlubek <*****@*****.**> */ public function humanizeCamelCaseConvertsCamelCaseToSpacesAndUppercasesFirstWord() { $inflector = new \F3\Kickstart\Utility\Inflector(); $humanized = $inflector->humanizeCamelCase('BlogAuthor'); $this->assertEquals('Blog author', $humanized); }
/** * 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); }