|
@@ -36,7 +36,7 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
|
|
|
const TEST_CLASS = 'Mustache';
|
|
const TEST_CLASS = 'Mustache';
|
|
|
|
|
|
|
|
protected $knownIssues = array(
|
|
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() {
|
|
public function testStickyDelimiters() {
|
|
|
$m = new Mustache(null, array('result' => 'FAIL'));
|
|
$m = new Mustache(null, array('result' => 'FAIL'));
|
|
|
$this->assertEquals('{{ result }}', $m->render('{{=[[ ]]=}}{{ result }}[[={{ }}=]]'));
|
|
$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]][[={{ }}=]]'));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|