public function testPregMatch() { $this->check('YES', '{% if "foo"|preg_match("/oo/") %}YES{% else %}NO{% endif %}'); }