Ejemplo n.º 1
0
 /**
  * @test
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function pluralizePluralizesWords()
 {
     $inflector = new \F3\Kickstart\Utility\Inflector();
     $this->assertEquals('boxes', $inflector->pluralize('box'));
     $this->assertEquals('foos', $inflector->pluralize('foo'));
 }
 /**
  * Pluralize a word
  *
  * @return string The pluralized string
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function render()
 {
     $content = $this->renderChildren();
     return $this->inflector->pluralize($content);
 }
 /**
  * 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);
 }