From d4051a1640515243f31ea050904455aa7e57c3e8 Mon Sep 17 00:00:00 2001 From: leunggamciu Date: Sat, 2 Apr 2016 09:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Url=E7=B1=BB=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=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, 6 insertions(+) diff --git a/tests/thinkphp/library/think/urlTest.php b/tests/thinkphp/library/think/urlTest.php index 8150f1ab..18a224e5 100644 --- a/tests/thinkphp/library/think/urlTest.php +++ b/tests/thinkphp/library/think/urlTest.php @@ -43,6 +43,12 @@ class urlTest extends \PHPUnit_Framework_TestCase { Route::get('blog/:id', '@index/blog/read'); $this->assertEquals('/blog/10.html', Url::build('@index/blog/read', 'id=10', 'html')); + + Route::get('foo/bar', '@foo/bar/index'); + $this->assertEquals('/foo/bar', Url::build('@foo/bar/index')); + + Route::get('foo/bar/baz', '@foo/bar.BAZ/index'); + $this->assertEquals('/foo/bar/baz', Url::build('@foo/bar.BAZ/index')); } public function testBuildMethod()