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:
Marco Montagna 2015-06-03 14:50:46 -07:00
parent 083458d839
commit 91ba4f3191

View File

@ -454,14 +454,6 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
$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()
{
$this->setExpectedException('RuntimeException');