单元测试

This commit is contained in:
thinkphp
2017-01-20 13:28:57 +08:00
parent bbfc33f334
commit 069d63a2fc
2 changed files with 2 additions and 2 deletions

View File

@@ -448,7 +448,7 @@ class Cx extends Taglib
{
$name = $tag['name'];
$name = $this->autoBuildVar($name);
$parseStr = '<?php if(!(empty(' . $name . ') || ((' . $name . ' instanceof \think\Collection || ' . $name . ' instanceof \think\Paginator) && ' . $name . '->isEmpty()))): ?>' . $content . '<?php endif; ?>';
$parseStr = '<?php if(!(empty(' . $name . ') || ((' . $name . ' instanceof \think\Collection || ' . $name . ' instanceof \think\Paginator ) && ' . $name . '->isEmpty()))): ?>' . $content . '<?php endif; ?>';
return $parseStr;
}

View File

@@ -88,7 +88,7 @@ class validateTest extends \PHPUnit_Framework_TestCase
'date' => '16-3-8',
'ok' => 'yes',
'value' => 100,
'bool' => 'true',
'bool' => true,
'title' => '流年ThinkPHP',
'city' => '上海',
'nickname' => '流年ThinkPHP_2016',