mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
fixed failing test
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
"constant" filter
|
"constant" function
|
||||||
--TEMPLATE--
|
--TEMPLATE--
|
||||||
{{ date|date(constant('DATE_W3C')) }}
|
{% if constant('DATE_W3C') == expect %}
|
||||||
|
true
|
||||||
|
{% else %}
|
||||||
|
false
|
||||||
|
{% endif %}
|
||||||
--DATA--
|
--DATA--
|
||||||
$d = date_default_timezone_get();
|
return array('expect' => DATE_W3C);
|
||||||
date_default_timezone_set('UTC');
|
|
||||||
$ret = array('date' => strtotime('2005-10-15 10:00:01'));
|
|
||||||
date_default_timezone_set($d);
|
|
||||||
return $ret;
|
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
2005-10-15T10:00:01+00:00
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user