From 7aad4f30e34793bf70f8fa9b3dfdd452fcabaa24 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 11 Dec 2016 21:21:22 -0500 Subject: [PATCH] Add failing test for Mustache-style `if` blocks --- tests/Xamin/HandlebarsTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Xamin/HandlebarsTest.php b/tests/Xamin/HandlebarsTest.php index 8defd75..ea756e2 100644 --- a/tests/Xamin/HandlebarsTest.php +++ b/tests/Xamin/HandlebarsTest.php @@ -177,6 +177,11 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase array('first' => false, 'second' => true), 'The second' ), + array( + '{{#value}}Hello {{value}}, from {{parent_context}}{{/value}}', + array('value' => 'string', 'parent_context' => 'parent string'), + 'Hello string, from parent string' + ), ); }