Skip to content

Commit

Permalink
MINOR Testing nested if blocks in SSViewerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jan 2, 2012
1 parent 19e9b19 commit b36ad3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/view/SSViewerTest.php
Expand Up @@ -208,6 +208,10 @@ function testIfBlocks() {
$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'));
Expand Down

0 comments on commit b36ad3b

Please sign in to comment.