Add more tests

This commit is contained in:
Fabien Potencier
2024-09-24 13:28:51 +02:00
parent d3a0717ab0
commit 3930d90842
+3 -1
View File
@@ -7,8 +7,9 @@ Twig supports the "matches" operator
{{ 'foo' matches '/^' ~ 'fo/' ? 'OK' : 'KO' }}
{{ 'foo' matches '/O/i' ? 'OK' : 'KO' }}
{{ null matches '/o/' }}
{{ markup matches '/test/' ? 'OK': 'KO' }}
--DATA--
return []
return ['markup' => new \Twig\Markup('test', 'UTF-8')]
--EXPECT--
OK
OK
@@ -16,3 +17,4 @@ OK
OK
OK
0
OK