@@ -49,7 +49,7 @@ public function testCallGet(): void
49
49
{
50
50
$ this ->withRoutes ([
51
51
[
52
- 'get ' ,
52
+ 'GET ' ,
53
53
'home ' ,
54
54
static fn () => 'Hello World ' ,
55
55
],
@@ -69,7 +69,7 @@ public function testCallGetAndUriString(): void
69
69
{
70
70
$ this ->withRoutes ([
71
71
[
72
- 'get ' ,
72
+ 'GET ' ,
73
73
'foo/bar/1/2/3 ' ,
74
74
static fn () => 'Hello World ' ,
75
75
],
@@ -85,7 +85,7 @@ public function testCallGetAndFilterReturnsResponse(): void
85
85
{
86
86
$ this ->withRoutes ([
87
87
[
88
- 'get ' ,
88
+ 'GET ' ,
89
89
'admin ' ,
90
90
static fn () => 'Admin Area ' ,
91
91
['filter ' => 'test-redirectfilter ' ],
@@ -100,7 +100,7 @@ public function testClosureWithEcho()
100
100
{
101
101
$ this ->withRoutes ([
102
102
[
103
- 'get ' ,
103
+ 'GET ' ,
104
104
'home ' ,
105
105
static function () { echo 'test echo ' ; },
106
106
],
@@ -118,7 +118,7 @@ public function testCallPost(): void
118
118
{
119
119
$ this ->withRoutes ([
120
120
[
121
- 'post ' ,
121
+ 'POST ' ,
122
122
'home ' ,
123
123
static fn () => 'Hello Mars ' ,
124
124
],
@@ -132,7 +132,7 @@ public function testCallPostWithBody(): void
132
132
{
133
133
$ this ->withRoutes ([
134
134
[
135
- 'post ' ,
135
+ 'POST ' ,
136
136
'home ' ,
137
137
static fn () => 'Hello ' . service ('request ' )->getPost ('foo ' ) . '! ' ,
138
138
],
@@ -146,7 +146,7 @@ public function testCallValidationTwice(): void
146
146
{
147
147
$ this ->withRoutes ([
148
148
[
149
- 'post ' ,
149
+ 'POST ' ,
150
150
'section/create ' ,
151
151
static function () {
152
152
$ validation = Services::validation ();
@@ -176,7 +176,7 @@ public function testCallPut(): void
176
176
{
177
177
$ this ->withRoutes ([
178
178
[
179
- 'put ' ,
179
+ 'PUT ' ,
180
180
'home ' ,
181
181
static fn () => 'Hello Pluto ' ,
182
182
],
@@ -190,7 +190,7 @@ public function testCallPatch(): void
190
190
{
191
191
$ this ->withRoutes ([
192
192
[
193
- 'patch ' ,
193
+ 'PATCH ' ,
194
194
'home ' ,
195
195
static fn () => 'Hello Jupiter ' ,
196
196
],
@@ -204,7 +204,7 @@ public function testCallOptions(): void
204
204
{
205
205
$ this ->withRoutes ([
206
206
[
207
- 'options ' ,
207
+ 'OPTIONS ' ,
208
208
'home ' ,
209
209
static fn () => 'Hello George ' ,
210
210
],
@@ -218,7 +218,7 @@ public function testCallDelete(): void
218
218
{
219
219
$ this ->withRoutes ([
220
220
[
221
- 'delete ' ,
221
+ 'DELETE ' ,
222
222
'home ' ,
223
223
static fn () => 'Hello Wonka ' ,
224
224
],
@@ -232,7 +232,7 @@ public function testSession(): void
232
232
{
233
233
$ response = $ this ->withRoutes ([
234
234
[
235
- 'get ' ,
235
+ 'GET ' ,
236
236
'home ' ,
237
237
static fn () => 'Home ' ,
238
238
],
@@ -254,7 +254,7 @@ public function testWithSessionNull(): void
254
254
255
255
$ response = $ this ->withRoutes ([
256
256
[
257
- 'get ' ,
257
+ 'GET ' ,
258
258
'home ' ,
259
259
static fn () => 'Home ' ,
260
260
],
@@ -268,7 +268,7 @@ public function testReturns(): void
268
268
{
269
269
$ this ->withRoutes ([
270
270
[
271
- 'get ' ,
271
+ 'GET ' ,
272
272
'home ' ,
273
273
'\Tests\Support\Controllers\Popcorn::index ' ,
274
274
],
@@ -281,7 +281,7 @@ public function testIgnores(): void
281
281
{
282
282
$ this ->withRoutes ([
283
283
[
284
- 'get ' ,
284
+ 'GET ' ,
285
285
'home ' ,
286
286
'\Tests\Support\Controllers\Popcorn::cat ' ,
287
287
],
@@ -294,7 +294,7 @@ public function testEchoesWithParams(): void
294
294
{
295
295
$ this ->withRoutes ([
296
296
[
297
- 'get ' ,
297
+ 'GET ' ,
298
298
'home ' ,
299
299
'\Tests\Support\Controllers\Popcorn::canyon ' ,
300
300
],
@@ -308,7 +308,7 @@ public function testEchoesWithQuery(): void
308
308
{
309
309
$ this ->withRoutes ([
310
310
[
311
- 'get ' ,
311
+ 'GET ' ,
312
312
'home ' ,
313
313
'\Tests\Support\Controllers\Popcorn::canyon ' ,
314
314
],
@@ -373,7 +373,7 @@ public function testOpenCliRoutesFromHttpGot404($from, $to, $httpGet): void
373
373
374
374
$ this ->withRoutes ([
375
375
[
376
- 'cli ' ,
376
+ 'CLI ' ,
377
377
$ from ,
378
378
$ to ,
379
379
],
@@ -388,7 +388,7 @@ public function testIsOkWithRedirects(): void
388
388
{
389
389
$ this ->withRoutes ([
390
390
[
391
- 'get ' ,
391
+ 'GET ' ,
392
392
'home ' ,
393
393
'\Tests\Support\Controllers\Popcorn::goaway ' ,
394
394
],
@@ -402,7 +402,7 @@ public function testCallGetWithParams(): void
402
402
{
403
403
$ this ->withRoutes ([
404
404
[
405
- 'get ' ,
405
+ 'GET ' ,
406
406
'home ' ,
407
407
static fn () => json_encode (Services::request ()->getGet ()),
408
408
],
@@ -429,7 +429,7 @@ public function testCallGetWithParamsAndREQUEST(): void
429
429
{
430
430
$ this ->withRoutes ([
431
431
[
432
- 'get ' ,
432
+ 'GET ' ,
433
433
'home ' ,
434
434
static fn () => json_encode (Services::request ()->fetchGlobal ('request ' )),
435
435
],
@@ -456,7 +456,7 @@ public function testCallPostWithParams(): void
456
456
{
457
457
$ this ->withRoutes ([
458
458
[
459
- 'post ' ,
459
+ 'POST ' ,
460
460
'home ' ,
461
461
static fn () => json_encode (Services::request ()->getPost ()),
462
462
],
@@ -483,7 +483,7 @@ public function testCallPostWithParamsAndREQUEST(): void
483
483
{
484
484
$ this ->withRoutes ([
485
485
[
486
- 'post ' ,
486
+ 'POST ' ,
487
487
'home ' ,
488
488
static fn () => json_encode (Services::request ()->fetchGlobal ('request ' )),
489
489
],
@@ -510,7 +510,7 @@ public function testCallPutWithJsonRequest(): void
510
510
{
511
511
$ this ->withRoutes ([
512
512
[
513
- 'put ' ,
513
+ 'PUT ' ,
514
514
'home ' ,
515
515
'\Tests\Support\Controllers\Popcorn::echoJson ' ,
516
516
],
@@ -534,7 +534,7 @@ public function testCallPutWithJsonRequestAndREQUEST(): void
534
534
{
535
535
$ this ->withRoutes ([
536
536
[
537
- 'put ' ,
537
+ 'PUT ' ,
538
538
'home ' ,
539
539
static fn () => json_encode (Services::request ()->fetchGlobal ('request ' )),
540
540
],
@@ -558,7 +558,7 @@ public function testCallWithJsonRequest(): void
558
558
{
559
559
$ this ->withRoutes ([
560
560
[
561
- 'post ' ,
561
+ 'POST ' ,
562
562
'home ' ,
563
563
'\Tests\Support\Controllers\Popcorn::echoJson ' ,
564
564
],
0 commit comments