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-- 8return ['traversable' => new \ArrayObject(['%this%' => 'foo', '%that%' => 'bar'])] 9--EXPECT-- 10I liké foo and bar. 11I like single replace operation only %that%1 12I like foo and bar. 13