改进自动路由标识生成 支持不同的路由规则 指向同一个路由标识,改进Url自动生成对路由标识的支持

This commit is contained in:
thinkphp
2016-08-23 18:03:31 +08:00
parent 0885e14f24
commit 369bbc9d99
3 changed files with 13 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ class urlTest extends \PHPUnit_Framework_TestCase
public function testBuildMethod()
{
Route::get('blog/:id', ['\app\index\controller\blog', 'read']);
Route::get('blog/:id', '\app\index\controller\blog@read');
$this->assertEquals('/blog/10.html', Url::build('\app\index\controller\blog\read', 'id=10', 'html'));
}