b6c771657a7c525185a30112bd61536b4c7628a3
[yaffs-website] / 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