Sfoglia il codice sorgente

Add a failing test case for #294

Justin Hileman 9 anni fa
parent
commit
21d553fc02
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      test/Mustache/Test/Functional/InheritanceTest.php

+ 9 - 0
test/Mustache/Test/Functional/InheritanceTest.php

@@ -84,6 +84,15 @@ class Mustache_Test_Functional_InheritanceTest extends PHPUnit_Framework_TestCas
                 '{{<foo}}set by template{{$baz}}also set by template{{/baz}}{{/foo}}',
                 'also set by template',
             ),
+            array(
+                array(
+                    'foo' => '{{$a}}FAIL!{{/a}}',
+                    'bar' => 'WIN!!',
+                ),
+                array(),
+                '{{<foo}}{{$a}}{{<bar}}FAIL{{/bar}}{{/a}}{{/foo}}',
+                'WIN!!',
+            ),
         );
     }