Add a test case for #66

This commit is contained in:
Dmitriy Simushev 2014-07-02 18:35:00 +00:00
parent bc56af2e83
commit c5d09bd13a

View File

@ -209,6 +209,11 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
array('data' => array(1, 2, 3, 4)),
'1234'
),
array(
'{{#each data}}{{@key}}{{/each}}',
array('data' => array('the_only_key' => 1)),
'the_only_key'
),
array(
'{{#each data}}{{@key}}=>{{this}}{{/each}}',
array('data' => array('key1' => 1, 'key2' => 2,)),