This commit is contained in:
thinkphp
2017-03-08 11:07:26 +08:00
parent c635c2caf1
commit 38908360c2

View File

@@ -240,7 +240,7 @@ EOF;
<#\$info.a|default='test'?'yes':'no'#>
EOF;
$data = <<<EOF
<?php echo ((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);