From e94c707d24af46d6b204f94326e5425582e757da Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 26 Mar 2016 12:46:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84urlTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/urlTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/thinkphp/library/think/urlTest.php b/tests/thinkphp/library/think/urlTest.php index f41c13b2..bf98caf0 100644 --- a/tests/thinkphp/library/think/urlTest.php +++ b/tests/thinkphp/library/think/urlTest.php @@ -33,6 +33,9 @@ class urlTest extends \PHPUnit_Framework_TestCase $this->assertEquals('/hello/thinkphp.html', Url::build('index/hello', 'name=thinkphp', 'html')); $this->assertEquals('/hello/10', Url::build('index/hello?id=10')); $this->assertEquals('/hello/10.html', Url::build('index/hello', 'id=10', 'html')); + + Route::get('hello-', 'index/say'); + $this->assertEquals('/hello-thinkphp2016', Url::build('index/say?name=thinkphp&id=2016')); } public function testBuildController()