@@ -24,7 +24,8 @@ public function testRouteGenerationSimple()
24
24
{
25
25
$ this ->router = new Router ($ this ->adapter , $ this ->exception , $ this ->container , null , null );
26
26
$ this ->router ->version ('v1 ' , function (Router $ router ) {
27
- $ router ->any ('foo ' , function () {})->name ('my.route ' );
27
+ $ router ->any ('foo ' , function () {
28
+ })->name ('my.route ' );
28
29
});
29
30
30
31
$ generator = new UrlGenerator ($ this ->createRequest ('/foo ' , 'GET ' ));
@@ -55,7 +56,8 @@ public function testRouteGenerationWithDomain()
55
56
{
56
57
$ this ->router = new Router ($ this ->adapter , $ this ->exception , $ this ->container , 'dingo.dev ' , null );
57
58
$ this ->router ->version ('v1 ' , function (Router $ router ) {
58
- $ router ->any ('foo ' , function () {})->name ('my.route ' );
59
+ $ router ->any ('foo ' , function () {
60
+ })->name ('my.route ' );
59
61
});
60
62
61
63
$ generator = new UrlGenerator ($ this ->createRequest ('/foo ' , 'GET ' ));
@@ -69,7 +71,8 @@ public function testRouteGenerationWithPrefix()
69
71
{
70
72
$ this ->router = new Router ($ this ->adapter , $ this ->exception , $ this ->container , 'dingo.dev ' , 'api ' );
71
73
$ this ->router ->version ('v1 ' , function (Router $ router ) {
72
- $ router ->any ('foo ' , function () {})->name ('my.route ' );
74
+ $ router ->any ('foo ' , function () {
75
+ })->name ('my.route ' );
73
76
});
74
77
75
78
$ generator = new UrlGenerator ($ this ->createRequest ('/foo ' , 'GET ' ));
@@ -83,7 +86,8 @@ public function testRouteGenerationWithNamedParameters()
83
86
{
84
87
$ this ->router = new Router ($ this ->adapter , $ this ->exception , $ this ->container , 'dingo.dev ' , 'api ' );
85
88
$ this ->router ->version ('v1 ' , function (Router $ router ) {
86
- $ router ->any ('foo/{bar} ' , function () {})->name ('my.route ' );
89
+ $ router ->any ('foo/{bar} ' , function () {
90
+ })->name ('my.route ' );
87
91
});
88
92
89
93
$ generator = new UrlGenerator ($ this ->createRequest ('/foo ' , 'GET ' ));
@@ -97,7 +101,8 @@ public function testRouteGenerationWithIndexedParameters()
97
101
{
98
102
$ this ->router = new Router ($ this ->adapter , $ this ->exception , $ this ->container , 'dingo.dev ' , 'api ' );
99
103
$ this ->router ->version ('v1 ' , function (Router $ router ) {
100
- $ router ->any ('foo/{bar} ' , function () {})->name ('my.route ' );
104
+ $ router ->any ('foo/{bar} ' , function () {
105
+ })->name ('my.route ' );
101
106
});
102
107
103
108
$ generator = new UrlGenerator ($ this ->createRequest ('/foo ' , 'GET ' ));
0 commit comments