mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Add a test case for #66
This commit is contained in:
parent
bc56af2e83
commit
c5d09bd13a
@ -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,)),
|
||||
|
Loading…
Reference in New Issue
Block a user