From eed777f8d85aa59da0134c944f38ae8d58cc296d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 5 Jul 2014 14:08:19 +0200 Subject: [PATCH] replaced deprecated divisibleby by divisible by in tests --- lib/Twig/Node/Expression/Test/Divisibleby.php | 2 +- .../Tests/Fixtures/expressions/divisibleby.test | 4 ---- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/lib/Twig/Node/Expression/Test/Divisibleby.php b/lib/Twig/Node/Expression/Test/Divisibleby.php index 0aceb53..d5bed23 100644 --- a/lib/Twig/Node/Expression/Test/Divisibleby.php +++ b/lib/Twig/Node/Expression/Test/Divisibleby.php @@ -13,7 +13,7 @@ * Checks if a variable is divisible by a number. * *
- *  {% if loop.index is divisibleby(3) %}
+ *  {% if loop.index is divisible by(3) %}
  * 
* * @author Fabien Potencier diff --git a/test/Twig/Tests/Fixtures/expressions/divisibleby.test b/test/Twig/Tests/Fixtures/expressions/divisibleby.test index 14ee5e4..238dd27 100644 --- a/test/Twig/Tests/Fixtures/expressions/divisibleby.test +++ b/test/Twig/Tests/Fixtures/expressions/divisibleby.test @@ -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 -- 1.7.2.5