update failing test case, test for sticky delims between renders.

This commit is contained in:
Justin Hileman
2011-06-13 03:54:15 -04:00
parent f0dc81b6bd
commit a2f3662b6b
+3 -2
View File
@@ -36,7 +36,7 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
const TEST_CLASS = 'Mustache';
protected $knownIssues = array(
'Delimiters' => "Known issue: sections don't respect delimiter changes",
// Just the whitespace ones...
);
/**
@@ -408,7 +408,8 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
public function testStickyDelimiters() {
$m = new Mustache(null, array('result' => 'FAIL'));
$this->assertEquals('{{ result }}', $m->render('{{=[[ ]]=}}{{ result }}[[={{ }}=]]'));
$this->assertEquals('{{ result }}', $m->render('{{=[[ ]]=}}{{#result}}FAIL{{/result}}{{result}}[[={{ }}=]]'));
$this->assertEquals('{{ result }}', $m->render('{{=[[ ]]=}}[[#result]]{{ result }}[[/result]]'));
$this->assertEquals('{{ result }}', $m->render('{{=[[ ]]=}}[[#result]]{{ result }}[[/result]][[={{ }}=]]'));
}
/**