mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
单元测试
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user