From: Fabien Potencier Date: Thu, 25 Nov 2010 16:11:24 +0000 (+0100) Subject: added some missing tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=485406036fdb58d3ddc6da618434ac4302a381bd;p=web%2Fkonrad%2Ftwig.git added some missing tests --- diff --git a/test/Twig/Tests/Fixtures/tests/defined.test b/test/Twig/Tests/Fixtures/tests/defined.test new file mode 100644 index 0000000..8ae6808 --- /dev/null +++ b/test/Twig/Tests/Fixtures/tests/defined.test @@ -0,0 +1,12 @@ +--TEST-- +"defined" test +--TEMPLATE-- +{{ foo is defined ? 'ok' : 'ko' }} +{{ bar is defined ? 'ok' : 'ko' }} +{{ foobar is not defined ? 'ok' : 'ko' }} +--DATA-- +return array('foo' => 'bar', 'bar' => null); +--EXPECT-- +ok +ok +ok \ No newline at end of file