瀏覽代碼

Add an inverted section test to base test case.

Justin Hileman 15 年之前
父節點
當前提交
bb04ccd05e
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      test/MustacheExceptionTest.php

+ 8 - 0
test/MustacheExceptionTest.php

@@ -30,6 +30,14 @@ class MustacheExceptionTest extends PHPUnit_Framework_TestCase {
 		$this->pickyMustache->render('{{#unclosed}}');
 	}
 
+	/**
+	 * @group sections
+	 * @expectedException MustacheException
+	 */
+	public function testThrowsUnclosedInvertedSectionException() {
+		$this->pickyMustache->render('{{^unclosed}}');
+	}
+
 	/**
 	 * @group sections
 	 * @expectedException MustacheException