mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
增加单元测试 (#186)
This commit is contained in:
@@ -620,9 +620,9 @@ class Cx extends Taglib
|
||||
return $parseStr;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* U函数的tag标签
|
||||
* 格式:<url link="模块/控制器/方法" vars="参数" suffix="true或者false 是否带有后缀" domain="true或者false 是否携带域名" />
|
||||
* 格式:{url link="模块/控制器/方法" vars="参数" suffix="true或者false 是否带有后缀" domain="true或者false 是否携带域名" /}
|
||||
* @access public
|
||||
* @param array $tag 标签属性
|
||||
* @param string $content 标签内容
|
||||
|
||||
@@ -535,7 +535,16 @@ EOF;
|
||||
$template->display($content);
|
||||
$this->expectOutputString('123456789');
|
||||
}
|
||||
|
||||
public function testUrl()
|
||||
{
|
||||
$template = new template();
|
||||
$content = <<<EOF
|
||||
{url link="Index/index" /}
|
||||
EOF;
|
||||
$template->display($content);
|
||||
$this->expectOutputString(\think\Url::build('Index/index'));
|
||||
}
|
||||
|
||||
public function testFunction()
|
||||
{
|
||||
$template = new template();
|
||||
|
||||
Reference in New Issue
Block a user