mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 02:26:41 +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')),
|
array('data' => array('key' => 'result')),
|
||||||
'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