Revert "修正单元测试"

This reverts commit 3275b70156.

# Conflicts:
#	tests/thinkphp/library/think/template/taglib/cxTest.php
This commit is contained in:
thinkphp
2017-01-06 17:36:36 +08:00
parent 31ca473866
commit 7cb833ae45

View File

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