mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
replaced deprecated divisibleby by divisible by in tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user