mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
added a unit test
This commit is contained in:
@@ -4,11 +4,12 @@
|
||||
{{ foo is defined ? 'ok' : 'ko' }}
|
||||
{{ bar is defined ? 'ok' : 'ko' }}
|
||||
{{ foobar is not defined ? 'ok' : 'ko' }}
|
||||
{{ zero is defined ? 'ok' : 'ko' }}
|
||||
{{ nested.foo is defined ? 'ok' : 'ko' }}
|
||||
{{ nested.bar is not defined ? 'ok' : 'ko' }}
|
||||
{{ nested.zero is defined ? 'ok' : 'ko' }}
|
||||
--DATA--
|
||||
return array('foo' => 'bar', 'bar' => null, 'nested' => array('foo' => 'foo', 'zero' => 0));
|
||||
return array('foo' => 'bar', 'bar' => null, 'zero' => 0, 'nested' => array('foo' => 'foo', 'zero' => 0));
|
||||
--EXPECT--
|
||||
ok
|
||||
ok
|
||||
@@ -16,3 +17,4 @@ ok
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
|
||||
Reference in New Issue
Block a user