From 5746ee456e0ec54a29ffd1ebb092940f212fd056 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 10 May 2016 12:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/urlTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/thinkphp/library/think/urlTest.php b/tests/thinkphp/library/think/urlTest.php index f911895c..151cd4d6 100644 --- a/tests/thinkphp/library/think/urlTest.php +++ b/tests/thinkphp/library/think/urlTest.php @@ -34,9 +34,9 @@ class urlTest extends \PHPUnit_Framework_TestCase $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', [], ['name' => '\w+', 'id' => '\d+']); - $this->assertEquals('/hello-thinkphp', Url::build('index/say?name=thinkphp')); - $this->assertEquals('/hello-thinkphp2016', Url::build('index/say?name=thinkphp&id=2016')); + Route::get('item-', 'good/item', [], ['item' => '\w+', 'id' => '\d+']); + $this->assertEquals('/item-thinkphp', Url::build('good/item?item=thinkphp')); + $this->assertEquals('/item-thinkphp2016', Url::build('good/item?item=thinkphp&id=2016')); } public function testBuildController()