修正单元测试

This commit is contained in:
thinkphp
2017-01-04 22:06:55 +08:00
parent aecd3524a9
commit 3275b70156

View File

@@ -389,7 +389,7 @@ default
{/empty} {/empty}
EOF; EOF;
$data = <<<EOF $data = <<<EOF
<?php if(empty(\$var) || (\$var instanceof \\think\\Collection && \$var->isEmpty())): ?> <?php $_var = \$var;if(empty($_var) || ($_var instanceof \\think\\Collection && $_var->isEmpty())): ?>
default default
<?php endif; ?> <?php endif; ?>
EOF; EOF;
@@ -402,7 +402,7 @@ default
{/notempty} {/notempty}
EOF; EOF;
$data = <<<EOF $data = <<<EOF
<?php if(!(empty(\$var) || (\$var instanceof \\think\\Collection && \$var->isEmpty()))): ?> <?php $_var = \$var;if(!(empty($_var) || ($_var instanceof \\think\\Collection && $_var->isEmpty()))): ?>
default default
<?php endif; ?> <?php endif; ?>
EOF; EOF;
@@ -538,7 +538,7 @@ EOF;
public function testUrl() public function testUrl()
{ {
$template = new template(); $template = new template();
$content = <<<EOF $content = <<<EOF
{url link="Index/index" /} {url link="Index/index" /}
EOF; EOF;
$template->display($content); $template->display($content);