Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / filters / replace.test
1 --TEST--
2 "replace" filter
3 --TEMPLATE--
4 {{ "I liké %this% and %that%."|replace({'%this%': "foo", '%that%': "bar"}) }}
5 {{ 'I like single replace operation only %that%'|replace({'%that%' : '%that%1'}) }}
6 {{ 'I like %this% and %that%.'|replace(traversable) }}
7 --DATA--
8 return array('traversable' => new ArrayObject(array('%this%' => 'foo', '%that%' => 'bar')))
9 --EXPECT--
10 I liké foo and bar.
11 I like single replace operation only %that%1
12 I like foo and bar.