diff --git a/tests/thinkphp/library/think/templateTest.php b/tests/thinkphp/library/think/templateTest.php index 49c0eb39..e881bc33 100644 --- a/tests/thinkphp/library/think/templateTest.php +++ b/tests/thinkphp/library/think/templateTest.php @@ -240,7 +240,7 @@ EOF; <#\$info.a|default='test'?'yes':'no'#> EOF; $data = <<a) !== ''?(is_array(\$info)?\$info['a']:\$info->a):'test')?'yes':'no'; ?> +a) ?:'test')?'yes':'no'; ?> EOF; $template->parse($content); $this->assertEquals($data, $content);