replaced deprecated divisibleby by divisible by in tests

This commit is contained in:
Fabien Potencier
2014-07-05 14:08:19 +02:00
parent eeeef75f0a
commit eed777f8d8
2 changed files with 1 additions and 5 deletions
@@ -13,7 +13,7 @@
* Checks if a variable is divisible by a number.
*
* <pre>
* {% if loop.index is divisibleby(3) %}
* {% if loop.index is divisible by(3) %}
* </pre>
*
* @author Fabien Potencier <fabien@symfony.com>
@@ -1,8 +1,6 @@
--TEST--
Twig supports the "divisible by" operator
--TEMPLATE--
{{ 8 is divisibleby(2) ? 'OK' }}
{{ 8 is not divisibleby(3) ? 'OK' }}
{{ 8 is divisible by(2) ? 'OK' }}
{{ 8 is not divisible by(3) ? 'OK' }}
{{ 8 is divisible by (2) ? 'OK' }}
@@ -17,5 +15,3 @@ OK
OK
OK
OK
OK
OK