This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,11 @@ protected function setUp()
73
73
? WildcardRoute::class
74
74
: NextGenWildcardRoute::class;
75
75
76
- $ routerClass = class_exists (Router::class)
76
+ $ this -> routerClass = class_exists (Router::class)
77
77
? Router::class
78
78
: NextGenRouter::class;
79
79
80
- $ router = new $ routerClass ();
80
+ $ router = new $ this -> routerClass ();
81
81
$ router ->addRoute ('home ' , [
82
82
'type ' => $ this ->literalRouteType ,
83
83
'options ' => [
@@ -243,15 +243,15 @@ public function testRemovesModuleRouteListenerParamsWhenReusingMatchedParameters
243
243
244
244
public function testAcceptsNextGenRouterToSetRouter ()
245
245
{
246
- $ router = new NextGenRouter ();
246
+ $ router = new $ this -> routerClass ();
247
247
$ url = new UrlHelper ();
248
248
$ url ->setRouter ($ router );
249
249
$ this ->assertAttributeSame ($ router , 'router ' , $ url );
250
250
}
251
251
252
252
public function testAcceptsNextGenRouteMatche ()
253
253
{
254
- $ routeMatch = new NextGenRouteMatch ([]);
254
+ $ routeMatch = new $ this -> routeMatchType ([]);
255
255
$ url = new UrlHelper ();
256
256
$ url ->setRouteMatch ($ routeMatch );
257
257
$ this ->assertAttributeSame ($ routeMatch , 'routeMatch ' , $ url );
You can’t perform that action at this time.
0 commit comments