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-- --TEST--
"constant" function "constant" function
--TEMPLATE-- --TEMPLATE--
{% if constant('DATE_W3C') == expect %} {{ constant('DATE_W3C') == expect ? 'true' : 'false' }}
true {{ constant('ARRAY_AS_PROPS', object) }}
{% else %}
false
{% endif %}
--DATA-- --DATA--
return array('expect' => DATE_W3C); return array('expect' => DATE_W3C, 'object' => new ArrayObject(array('hi')));
--EXPECT-- --EXPECT--
true true
2