mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 10:33:08 +03:00
Fix scoping error
This commit is contained in:
parent
07d8542e3b
commit
dfb62e42cc
@ -581,6 +581,10 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testSafeStringClass()
|
public function testSafeStringClass()
|
||||||
{
|
{
|
||||||
|
$loader = new \Handlebars\Loader\StringLoader();
|
||||||
|
$helpers = new \Handlebars\Helpers();
|
||||||
|
$engine = new \Handlebars\Handlebars(array('loader' => $loader, 'helpers' => $helpers));
|
||||||
|
|
||||||
$this->assertEquals('<strong>Test</strong>', $engine->render('{{string}}', array(
|
$this->assertEquals('<strong>Test</strong>', $engine->render('{{string}}', array(
|
||||||
'string' => new \Handlebars\SafeString('<strong>Test</strong>')
|
'string' => new \Handlebars\SafeString('<strong>Test</strong>')
|
||||||
)));
|
)));
|
||||||
|
Loading…
Reference in New Issue
Block a user