mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
Revert "修正单元测试"
This reverts commit 3275b70156.
# Conflicts:
# tests/thinkphp/library/think/template/taglib/cxTest.php
This commit is contained in:
@@ -389,7 +389,7 @@ default
|
|||||||
{/empty}
|
{/empty}
|
||||||
EOF;
|
EOF;
|
||||||
$data = <<<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
|
default
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
EOF;
|
EOF;
|
||||||
@@ -402,7 +402,7 @@ default
|
|||||||
{/notempty}
|
{/notempty}
|
||||||
EOF;
|
EOF;
|
||||||
$data = <<<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
|
default
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
EOF;
|
EOF;
|
||||||
@@ -538,13 +538,13 @@ 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);
|
||||||
$this->expectOutputString(\think\Url::build('Index/index'));
|
$this->expectOutputString(\think\Url::build('Index/index'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFunction()
|
public function testFunction()
|
||||||
{
|
{
|
||||||
$template = new template();
|
$template = new template();
|
||||||
|
|||||||
Reference in New Issue
Block a user