Explorar o código

Add an inverted section test to base test case.

Justin Hileman %!s(int64=15) %!d(string=hai) anos
pai
achega
bb04ccd05e
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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