mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正单元测试
This commit is contained in:
@@ -240,7 +240,7 @@ EOF;
|
||||
<#\$info.a|default='test'?'yes':'no'#>
|
||||
EOF;
|
||||
$data = <<<EOF
|
||||
<?php echo ((is_array(\$info)?\$info['a']:\$info->a) !== ''?(is_array(\$info)?\$info['a']:\$info->a):'test')?'yes':'no'; ?>
|
||||
<?php echo ((is_array(\$info)?\$info['a']:\$info->a) ?:'test')?'yes':'no'; ?>
|
||||
EOF;
|
||||
$template->parse($content);
|
||||
$this->assertEquals($data, $content);
|
||||
|
||||
Reference in New Issue
Block a user