adding tests for space failure

This commit is contained in:
Jeremy Bush
2010-07-22 20:32:44 -04:00
committed by Justin Hileman
parent c1cdea7bc5
commit c51d1e61b7
3 changed files with 31 additions and 0 deletions
@@ -0,0 +1,14 @@
<?php
class Sections_Spaces extends Mustache {
public $start = "It worked the first time.";
public function middle() {
return array(
array('item' => "And it worked the second time."),
array('item' => "As well as the third."),
);
}
public $final = "Then, surprisingly, it worked the final time.";
}
@@ -0,0 +1,9 @@
* {{ start }}
{{# middle }}
* {{ item }}
{{/ middle }}
* {{ final }}
* {{ start }}
{{# middle }} * {{ item }}{{/ middle }}
* {{ final }}
@@ -0,0 +1,8 @@
* It worked the first time.
* And it worked the second time.
* As well as the third.
* Then, surprisingly, it worked the final time.
* It worked the first time.
* And it worked the second time. * As well as the third.
* Then, surprisingly, it worked the final time.