Add tests for getting constants from instances.

This commit is contained in:
Mark Story
2013-01-10 23:37:47 -05:00
parent 3111e1265d
commit 998b367c0c
@@ -1,12 +1,10 @@
--TEST--
"constant" function
--TEMPLATE--
{% if constant('DATE_W3C') == expect %}
true
{% else %}
false
{% endif %}
{{ constant('DATE_W3C') == expect ? 'true' : 'false' }}
{{ constant('ARRAY_AS_PROPS', object) }}
--DATA--
return array('expect' => DATE_W3C);
return array('expect' => DATE_W3C, 'object' => new ArrayObject(array('hi')));
--EXPECT--
true
2