Add an inverted section test to base test case.

This commit is contained in:
Justin Hileman
2010-11-24 03:36:41 -05:00
parent 943aa8849a
commit bb04ccd05e
+8
View File
@@ -30,6 +30,14 @@ class MustacheExceptionTest extends PHPUnit_Framework_TestCase {
$this->pickyMustache->render('{{#unclosed}}'); $this->pickyMustache->render('{{#unclosed}}');
} }
/**
* @group sections
* @expectedException MustacheException
*/
public function testThrowsUnclosedInvertedSectionException() {
$this->pickyMustache->render('{{^unclosed}}');
}
/** /**
* @group sections * @group sections
* @expectedException MustacheException * @expectedException MustacheException