mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Add unit tests for TemplateHandler changes
This commit is contained in:
parent
95a36477b7
commit
a0bcb92847
1 changed files with 25 additions and 0 deletions
|
|
@ -275,6 +275,31 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
||||||
array(
|
array(
|
||||||
'<input>asdf src="../img/img.gif" asdf</input>',
|
'<input>asdf src="../img/img.gif" asdf</input>',
|
||||||
'?><input>asdf src="../img/img.gif" asdf</input>'
|
'?><input>asdf src="../img/img.gif" asdf</input>'
|
||||||
|
),
|
||||||
|
// Rhymix improvements (PR #604)
|
||||||
|
array(
|
||||||
|
'<span>{$_SERVER["REMOTE_ADDR"]}</span>',
|
||||||
|
'?><span><?php echo $_SERVER["REMOTE_ADDR"] ?></span>'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'<span>{escape($_COOKIE[$var], false)}</span>',
|
||||||
|
'?><span><?php echo escape($_COOKIE[$__Context->var], false) ?></span>'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'<span>{$GLOBALS[$__Context->rhymix->rules]}</span>',
|
||||||
|
'?><span><?php echo $GLOBALS[$__Context->rhymix->rules] ?></span>'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'<span>{$FOOBAR}</span>',
|
||||||
|
'?><span><?php echo $__Context->FOOBAR ?></span>'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'<span>{RX_BASEDIR}</span>',
|
||||||
|
'?><span>{RX_BASEDIR}</span>'
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'<span>{\RX_BASEDIR}</span>',
|
||||||
|
'?><span><?php echo \RX_BASEDIR ?></span>'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue