Merge pull request #48 from Mibew/auto_esc_vars_tests

Add tests for auto escape variables content
This commit is contained in:
Fzerorubigd 2014-02-05 23:10:31 +03:30
commit 5b188ce19e

View File

@ -105,7 +105,17 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
'{{data.property.3}}',
array("data"=>array("property"=>array(1,2,3,4))),
'4'
)
),
array(
'{{data.unsafe}}',
array('data' => array('unsafe' => '<strong>Test</strong>')),
'&lt;strong&gt;Test&lt;/strong&gt;'
),
array(
'{{{data.safe}}}',
array('data' => array('safe' => '<strong>Test</strong>')),
'<strong>Test</strong>'
),
);
}