mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
增加单元测试 (#186)
This commit is contained in:
@@ -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