From 485406036fdb58d3ddc6da618434ac4302a381bd Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 25 Nov 2010 17:11:24 +0100 Subject: [PATCH] added some missing tests --- test/Twig/Tests/Fixtures/tests/defined.test | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/tests/defined.test 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 -- 1.7.2.5