MINOR Testing nested if blocks in SSViewerTest

This commit is contained in:
Ingo Schommer 2011-12-21 17:15:18 +01:00
parent 19e9b19a1a
commit b36ad3b876

View File

@ -208,6 +208,10 @@ after')
$this->assertEquals('AC',
$this->render('A<% if NotSet %>B$NotSet<% end_if %>C'));
// Nested test
$this->assertEquals('AB1C',
$this->render('A<% if IsSet %>B$NotSet<% if IsSet %>1<% else %>2<% end_if %><% end_if %>C'));
// else_if
$this->assertEquals('ACD',
$this->render('A<% if NotSet %>B<% else_if IsSet %>C<% end_if %>D'));