增加单元测试 (#186)

This commit is contained in:
lilwil
2016-06-30 15:15:51 +08:00
committed by 云无心
parent 1ef3f04d12
commit 28da923d28
2 changed files with 12 additions and 3 deletions

View File

@@ -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();