mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +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()
|
||||
{
|
||||
$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(
|
||||
'string' => new \Handlebars\SafeString('<strong>Test</strong>')
|
||||
)));
|
||||
|
Loading…
Reference in New Issue
Block a user