88
99namespace MiladRahimi \PhpRouter \Tests ;
1010
11+ use MiladRahimi \PhpRouter \Enums \GroupAttributes ;
1112use MiladRahimi \PhpRouter \Enums \HttpMethods ;
12- use MiladRahimi \PhpRouter \Enums \RouteAttributes ;
1313use MiladRahimi \PhpRouter \Router ;
1414use MiladRahimi \PhpRouter \Tests \Classes \SampleMiddleware ;
1515use Throwable ;
@@ -40,7 +40,7 @@ public function test_middleware_object()
4040 $ groupMiddleware = new SampleMiddleware (777 );
4141
4242 $ groupAttributes = [
43- RouteAttributes ::MIDDLEWARE => $ groupMiddleware ,
43+ GroupAttributes ::MIDDLEWARE => $ groupMiddleware ,
4444 ];
4545
4646 $ router = $ this ->createRouter ();
@@ -61,7 +61,7 @@ public function test_middleware_object()
6161 public function test_string_middleware ()
6262 {
6363 $ groupAttributes = [
64- RouteAttributes ::MIDDLEWARE => SampleMiddleware::class,
64+ GroupAttributes ::MIDDLEWARE => SampleMiddleware::class,
6565 ];
6666
6767 $ router = $ this ->createRouter ();
@@ -84,7 +84,7 @@ public function test_middleware_it_should_ignore_group_middleware_where_route_mi
8484 $ routeMiddleware = new SampleMiddleware (1002 );
8585
8686 $ groupAttributes = [
87- RouteAttributes ::MIDDLEWARE => $ groupMiddleware ,
87+ GroupAttributes ::MIDDLEWARE => $ groupMiddleware ,
8888 ];
8989
9090 $ router = $ this ->createRouter ();
@@ -108,7 +108,7 @@ public function test_prefix()
108108 $ this ->mockRequest (HttpMethods::GET , 'http://example.com/group/page ' );
109109
110110 $ groupAttributes = [
111- RouteAttributes ::PREFIX => '/group ' ,
111+ GroupAttributes ::PREFIX => '/group ' ,
112112 ];
113113
114114 $ router = $ this ->createRouter ();
@@ -130,7 +130,7 @@ public function test_domain()
130130 $ this ->mockRequest (HttpMethods::GET , 'http://sub.domain.tld/ ' );
131131
132132 $ groupAttributes = [
133- RouteAttributes ::DOMAIN => 'sub.domain.tld ' ,
133+ GroupAttributes ::DOMAIN => 'sub.domain.tld ' ,
134134 ];
135135
136136 $ router = $ this ->createRouter ();
@@ -152,7 +152,7 @@ public function test_domain_it_should_ignore_group_domain_where_route_domain_is_
152152 $ this ->mockRequest (HttpMethods::GET , 'http://sub2.domain.tld/ ' );
153153
154154 $ groupAttributes = [
155- RouteAttributes ::DOMAIN => 'sub1.domain.tld ' ,
155+ GroupAttributes ::DOMAIN => 'sub1.domain.tld ' ,
156156 ];
157157
158158 $ router = $ this ->createRouter ();
0 commit comments