From: Fabien Potencier Date: Sat, 5 Jul 2014 12:08:19 +0000 (+0200) Subject: replaced deprecated divisibleby by divisible by in tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=eed777f8d85aa59da0134c944f38ae8d58cc296d;p=web%2Fkonrad%2Ftwig.git replaced deprecated divisibleby by divisible by in tests --- 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