mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
完善urlTest
This commit is contained in:
@@ -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-<name><id>', 'index/say');
|
||||
$this->assertEquals('/hello-thinkphp2016', Url::build('index/say?name=thinkphp&id=2016'));
|
||||
}
|
||||
|
||||
public function testBuildController()
|
||||
|
||||
Reference in New Issue
Block a user