mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
Test more complex syntaxes using some of the filter tests
This commit is contained in:
parent
93a7348606
commit
a398c7548d
1 changed files with 4 additions and 4 deletions
|
|
@ -424,8 +424,8 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
||||||
'?><p><?php echo number_format($__Context->foo, \'2\') ?></p>'
|
'?><p><?php echo number_format($__Context->foo, \'2\') ?></p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'<p>{$foo|shorten}</p>',
|
'<p>{$foo->$bar|shorten}</p>',
|
||||||
'?><p><?php echo number_shorten($__Context->foo) ?></p>'
|
'?><p><?php echo number_shorten($__Context->foo->{$__Context->bar}) ?></p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'<p>{$foo|shorten:2}</p>',
|
'<p>{$foo|shorten:2}</p>',
|
||||||
|
|
@ -436,8 +436,8 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
||||||
'?><p><?php echo getDisplayDateTime(ztime($__Context->foo), \'His\') ?></p>'
|
'?><p><?php echo getDisplayDateTime(ztime($__Context->foo), \'His\') ?></p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'<p>{$foo|link}</p>',
|
'<p>{$foo[$bar]|link}</p>',
|
||||||
'?><p><?php echo \'<a href="\' . $__Context->foo . \'">\' . $__Context->foo . \'</a>\' ?></p>'
|
'?><p><?php echo \'<a href="\' . $__Context->foo[$__Context->bar] . \'">\' . $__Context->foo[$__Context->bar] . \'</a>\' ?></p>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'<p>{$foo|link:http://www.rhymix.org}</p>',
|
'<p>{$foo|link:http://www.rhymix.org}</p>',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue