1--TEST-- 2Twig supports the "ends with" operator 3--TEMPLATE-- 4{{ 'foo' ends with 'o' ? 'OK' : 'KO' }} 5{{ not ('foo' ends with 'f') ? 'OK' : 'KO' }} 6{{ not ('foo' ends with 'foowaytoolong') ? 'OK' : 'KO' }} 7{{ 'foo' ends with '' ? 'OK' : 'KO' }} 8{{ '1' ends with true ? 'OK' : 'KO' }} 9{{ 1 ends with true ? 'OK' : 'KO' }} 10{{ 0 ends with false ? 'OK' : 'KO' }} 11{{ '' ends with false ? 'OK' : 'KO' }} 12{{ false ends with false ? 'OK' : 'KO' }} 13{{ false ends with '' ? 'OK' : 'KO' }} 14--DATA-- 15return [] 16--EXPECT-- 17OK 18OK 19OK 20OK 21KO 22KO 23KO 24KO 25KO 26KO 27