Added tests for .length property on arrays

This commit is contained in:
Chris Gray 2014-01-19 21:08:38 -06:00
parent 3603a00ee6
commit 054f2c75ee

View File

@ -80,6 +80,16 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
array('data' => array('key' => 'result')),
'result'
),
array(
'{{data.length}}',
array("data" => array(1,2,3,4)),
'4'
),
array(
'{{data.length}}',
array("data"=> (object)array(1,2,3,4)),
''
)
);
}