projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
36143a6
)
Additional tests for issue #307
author
Joseph Bielawski
<stloyd@gmail.com>
Wed, 27 Apr 2011 15:01:08 +0000 (08:01 -0700)
committer
Joseph Bielawski
<stloyd@gmail.com>
Wed, 27 Apr 2011 15:01:08 +0000 (08:01 -0700)
test/Twig/Tests/Fixtures/tests/empty.test
patch
|
blob
|
history
diff --git
a/test/Twig/Tests/Fixtures/tests/empty.test
b/test/Twig/Tests/Fixtures/tests/empty.test
index
d183a93
..
06065f0
100644
(file)
--- a/
test/Twig/Tests/Fixtures/tests/empty.test
+++ b/
test/Twig/Tests/Fixtures/tests/empty.test
@@
-4,9
+4,15
@@
{{ foo is empty ? 'ok' : 'ko' }}
{{ bar is empty ? 'ok' : 'ko' }}
{{ foobar is empty ? 'ok' : 'ko' }}
+{{ array is empty ? 'ok' : 'ko' }}
+{{ zero is empty ? 'ok' : 'ko' }}
+{{ string is empty ? 'ok' : 'ko' }}
--DATA--
-return array('foo' => '', 'bar' => null, 'foobar' => false);
+return array('foo' => '', 'bar' => null, 'foobar' => false, 'array' => array(), 'zero' => 0, 'string' => '0');
--EXPECT--
ok
ok
ok
+ok
+ko
+ko
\ No newline at end of file