From 91ba4f31910cb123c7ed3cccad367c4db67438e8 Mon Sep 17 00:00:00 2001 From: Marco Montagna Date: Wed, 3 Jun 2015 14:50:46 -0700 Subject: [PATCH] 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' --- tests/Xamin/HandlebarsTest.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/Xamin/HandlebarsTest.php b/tests/Xamin/HandlebarsTest.php index 517549c..978ff50 100644 --- a/tests/Xamin/HandlebarsTest.php +++ b/tests/Xamin/HandlebarsTest.php @@ -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');