public function testUcfirst() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $this->assertEquals('Test this', $twig->ucfirst('test this')); }