projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Yaffs site version 1.1
[yaffs-website]
/
vendor
/
twig
/
twig
/
test
/
Twig
/
Tests
/
Fixtures
/
functions
/
constant.test
1
--TEST--
2
"constant" function
3
--TEMPLATE--
4
{{ constant('DATE_W3C') == expect ? 'true' : 'false' }}
5
{{ constant('ARRAY_AS_PROPS', object) }}
6
--DATA--
7
return array('expect' => DATE_W3C, 'object' => new ArrayObject(array('hi')));
8
--EXPECT--
9
true
10
2