diff --git a/tests/Xamin/HandlebarsTest.php b/tests/Xamin/HandlebarsTest.php index 1d91e1b..d5ff6c7 100644 --- a/tests/Xamin/HandlebarsTest.php +++ b/tests/Xamin/HandlebarsTest.php @@ -576,6 +576,16 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase $this->assertEquals('new', $string->getString()); } + /** + * test SafeString class + */ + public function testSafeStringClass() + { + $this->assertEquals('Test', $engine->render('{{string}}', array( + 'string' => new \Handlebars\SafeString('Test') + ))); + } + /** * @param $dir *