mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Added tests for .length property on arrays
This commit is contained in:
parent
3603a00ee6
commit
054f2c75ee
@ -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)),
|
||||
''
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user