mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 10:33:08 +03:00
Removed test that enforce strict search for variables in block exprs, which I believe is incorrect behavior as it breaks from the mustache spec (github.com/mustache/spec/blob/master/specs/sections.yml) see 'Failed context lookups should be considered falsey'
This commit is contained in:
parent
083458d839
commit
91ba4f3191
@ -454,14 +454,6 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
|||||||
$engine->getHelpers()->call('invalid', $engine->loadTemplate(''), new \Handlebars\Context(), '', '');
|
$engine->getHelpers()->call('invalid', $engine->loadTemplate(''), new \Handlebars\Context(), '', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInvalidHelperMustacheStyle()
|
|
||||||
{
|
|
||||||
$this->setExpectedException('RuntimeException');
|
|
||||||
$loader = new \Handlebars\Loader\StringLoader();
|
|
||||||
$engine = new \Handlebars\Handlebars(array('loader' => $loader));
|
|
||||||
$engine->render('{{#NOTVALID}}XXX{{/NOTVALID}}', array());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testInvalidHelper()
|
public function testInvalidHelper()
|
||||||
{
|
{
|
||||||
$this->setExpectedException('RuntimeException');
|
$this->setExpectedException('RuntimeException');
|
||||||
|
Loading…
Reference in New Issue
Block a user