mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 10:33:08 +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());
|
$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
|
* @param $dir
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user