Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / expressions / matches.test
1 --TEST--
2 Twig supports the "matches" operator
3 --TEMPLATE--
4 {{ 'foo' matches '/o/' ? 'OK' : 'KO' }}
5 {{ 'foo' matches '/^fo/' ? 'OK' : 'KO' }}
6 {{ 'foo' matches '/O/i' ? 'OK' : 'KO' }}
7 --DATA--
8 return array()
9 --EXPECT--
10 OK
11 OK
12 OK