88use PHPUnit_Framework_TestCase ;
99use Illuminate \Container \Container ;
1010use Dingo \Api \Tests \Stubs \RoutingAdapterStub ;
11+ use Illuminate \Routing \Route as IlluminateRoute ;
1112
1213class RouteTest extends PHPUnit_Framework_TestCase
1314{
@@ -26,7 +27,7 @@ public function testCreatingNewRoute()
2627 {
2728 $ request = Request::create ('foo ' , 'GET ' );
2829
29- $ route = new Route ($ this ->adapter , $ this ->container , $ request , new \ Illuminate \ Routing \ Route (['GET ' , 'HEAD ' ], 'foo ' , [
30+ $ route = new Route ($ this ->adapter , $ this ->container , $ request , new IlluminateRoute (['GET ' , 'HEAD ' ], 'foo ' , [
3031 'scopes ' => ['foo ' , 'bar ' ],
3132 'providers ' => ['foo ' ],
3233 'limit ' => 5 ,
@@ -50,7 +51,7 @@ public function testControllerOptionsMergeAndOverrideRouteOptions()
5051 {
5152 $ request = Request::create ('foo ' , 'GET ' );
5253
53- $ route = new Route ($ this ->adapter , $ this ->container , $ request , new \ Illuminate \ Routing \ Route (['GET ' , 'HEAD ' ], 'foo ' , [
54+ $ route = new Route ($ this ->adapter , $ this ->container , $ request , new IlluminateRoute (['GET ' , 'HEAD ' ], 'foo ' , [
5455 'scopes ' => ['foo ' , 'bar ' ],
5556 'providers ' => ['foo ' ],
5657 'limit ' => 5 ,
@@ -69,7 +70,7 @@ public function testControllerOptionsMergeAndOverrideRouteOptions()
6970 $ this ->assertTrue ($ route ->hasThrottle (), 'Route did not setup throttle correctly. ' );
7071 $ this ->assertInstanceOf ('Dingo\Api\Tests\Stubs\BasicThrottleStub ' , $ route ->getThrottle (), 'Route did not setup throttle correctly. ' );
7172
72- $ route = new Route ($ this ->adapter , $ this ->container , $ request , new \ Illuminate \ Routing \ Route (['GET ' , 'HEAD ' ], 'foo/bar ' , [
73+ $ route = new Route ($ this ->adapter , $ this ->container , $ request , new IlluminateRoute (['GET ' , 'HEAD ' ], 'foo/bar ' , [
7374 'scopes ' => ['foo ' , 'bar ' ],
7475 'providers ' => ['foo ' ],
7576 'limit ' => 5 ,
0 commit comments