pregReplace() public method

See also: Bolt\Twig\Handler\TextHandler::pregReplace()
public pregReplace ( $str, $pattern, $replacement = '', $limit )
Example #1
0
 public function testPregReplace()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['text'] = $this->getMockHandler('TextHandler', 'pregReplace');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->pregReplace(null, null, null, null);
 }