mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Add tests for passing SafeString as
This commit is contained in:
parent
402f970b77
commit
5222c6dff1
@ -576,6 +576,16 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals('new', $string->getString());
|
||||
}
|
||||
|
||||
/**
|
||||
* test SafeString class
|
||||
*/
|
||||
public function testSafeStringClass()
|
||||
{
|
||||
$this->assertEquals('<strong>Test</strong>', $engine->render('{{string}}', array(
|
||||
'string' => new \Handlebars\SafeString('<strong>Test</strong>')
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $dir
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user