From 8f5e3b77cffaa0868ca30bf372e75230481908c3 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 31 Jul 2016 18:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= 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, 2 insertions(+), 1 deletion(-) diff --git a/tests/thinkphp/library/think/urlTest.php b/tests/thinkphp/library/think/urlTest.php index 6b33a2b0..75683414 100644 --- a/tests/thinkphp/library/think/urlTest.php +++ b/tests/thinkphp/library/think/urlTest.php @@ -71,8 +71,9 @@ class urlTest extends \PHPUnit_Framework_TestCase public function testBuildNameRoute() { Route::get(['name', 'blog/:id'], 'index/blog'); + $this->assertEquals(['blog/:id', ['id' => 1]], Route::name('name')); Config::set('url_html_suffix', 'shtml'); - $this->assertEquals('/blog/10/name/thinkphp.shtml', Url::build('name?id=10&name=thinkphp')); + $this->assertEquals('/blog/10.shtml', Url::build('name?id=10')); } public function testBuildAnchor()