This commit is contained in:
bzick 2013-08-02 23:30:44 +04:00
parent 43925ae640
commit 1e7cf29290

View File

@ -389,6 +389,8 @@ class TemplateTest extends TestCase
array('{$empty.bool?:"empty"}', $a, "empty"),
array('{$empty.unexist?:"empty"}', $a, "empty"),
// ? ... : ....
array('{$unexists ? "no way" : "right"}', $a),
array('{$a ? "right" : "no way"}', $a),
// !
array('{if $a!} right {/if}', $a),
array('{if $unexists!} no way {else} right {/if}', $a),