Files
Twig/tests/Fixtures/expressions/matches_error_compilation.test
2024-09-21 10:29:51 +02:00

9 lines
271 B
Plaintext

--TEST--
Twig supports the "matches" operator with a great error message
--TEMPLATE--
{{ 'foo' matches '/o' }}
--DATA--
return []
--EXCEPTION--
Twig\Error\SyntaxError: Regexp "/o" passed to "matches" is not valid: No ending delimiter '/' found in "index.twig" at line 2.