소스 검색

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