修正单元测试

This commit is contained in:
thinkphp
2016-11-01 11:46:12 +08:00
parent 4a609c7254
commit 98baf43cf8

View File

@@ -257,10 +257,10 @@ class routeTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(['index', 'blog', 'test'], $result['module']); $this->assertEquals(['index', 'blog', 'test'], $result['module']);
Route::bind('\app\index\controller', 'namespace'); Route::bind('\app\index\controller', 'namespace');
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read']], Route::check($request, 'blog/read')); $this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\Blog', 'read']], Route::check($request, 'blog/read'));
Route::bind('\app\index\controller\blog', 'class'); Route::bind('\app\index\controller\Blog', 'class');
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read']], Route::check($request, 'read')); $this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\Blog', 'read']], Route::check($request, 'read'));
} }
public function testDomain() public function testDomain()