From: Arnaud Le Blanc Date: Sat, 12 Nov 2011 11:01:31 +0000 (+0100) Subject: fixed failing test X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9b4e298e8e72d07b01e6564c804ebc2b97c671d2;p=web%2Fkonrad%2Ftwig.git fixed failing test --- diff --git a/test/Twig/Tests/Fixtures/functions/constant.test b/test/Twig/Tests/Fixtures/functions/constant.test index dbff4ab..6d4b374 100644 --- a/test/Twig/Tests/Fixtures/functions/constant.test +++ b/test/Twig/Tests/Fixtures/functions/constant.test @@ -1,12 +1,12 @@ --TEST-- -"constant" filter +"constant" function --TEMPLATE-- -{{ date|date(constant('DATE_W3C')) }} +{% if constant('DATE_W3C') == expect %} +true +{% else %} +false +{% endif %} --DATA-- -$d = date_default_timezone_get(); -date_default_timezone_set('UTC'); -$ret = array('date' => strtotime('2005-10-15 10:00:01')); -date_default_timezone_set($d); -return $ret; +return array('expect' => DATE_W3C); --EXPECT-- -2005-10-15T10:00:01+00:00 +true