mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add more unit tests for edge cases
This commit is contained in:
parent
d03c64d069
commit
c4c5fa9e0d
1 changed files with 12 additions and 0 deletions
|
|
@ -423,6 +423,18 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
|||
'<p>{$foo|dafuq}</p>',
|
||||
'?><p><?php echo \'INVALID FILTER (dafuq)\' ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{$foo||$bar}</p>',
|
||||
'?><p><?php echo $__Context->foo||$__Context->bar ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{htmlspecialchars($var, ENT_COMPAT|ENT_HTML401)}</p>',
|
||||
'?><p><?php echo htmlspecialchars($__Context->var, ENT_COMPAT|ENT_HTML401) ?></p>'
|
||||
),
|
||||
array(
|
||||
'<p>{$foo | $bar}</p>',
|
||||
'?><p><?php echo $__Context->foo | $__Context->bar ?></p>'
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($tests as $test)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue