diff --git a/tests/Xamin/HandlebarsTest.php b/tests/Xamin/HandlebarsTest.php index d5ff6c7..5fe8bb4 100644 --- a/tests/Xamin/HandlebarsTest.php +++ b/tests/Xamin/HandlebarsTest.php @@ -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('Test', $engine->render('{{string}}', array( 'string' => new \Handlebars\SafeString('Test') )));