@@ -148,7 +148,7 @@ public function testAddWorksWithCurrentHTTPMethods(): void
148
148
149
149
$ routes = $ this ->getCollector ();
150
150
151
- $ routes ->match (['get ' ], 'home ' , 'controller ' );
151
+ $ routes ->match (['GET ' ], 'home ' , 'controller ' );
152
152
153
153
$ expects = [
154
154
'home ' => '\controller ' ,
@@ -180,7 +180,7 @@ public function testMatchIgnoresInvalidHTTPMethods(): void
180
180
181
181
$ routes = $ this ->getCollector ();
182
182
183
- $ routes ->match (['put ' ], 'home ' , 'controller ' );
183
+ $ routes ->match (['PUT ' ], 'home ' , 'controller ' );
184
184
185
185
$ routes = $ routes ->getRoutes ();
186
186
@@ -816,12 +816,12 @@ public function testMatchSupportsMultipleMethods(): void
816
816
817
817
$ expected = ['here ' => '\there ' ];
818
818
819
- $ routes ->match (['get ' , 'post ' ], 'here ' , 'there ' );
819
+ $ routes ->match (['GET ' , 'POST ' ], 'here ' , 'there ' );
820
820
$ this ->assertSame ($ expected , $ routes ->getRoutes ());
821
821
822
822
Services::request ()->setMethod ('post ' );
823
823
$ routes = $ this ->getCollector ();
824
- $ routes ->match (['get ' , 'post ' ], 'here ' , 'there ' );
824
+ $ routes ->match (['GET ' , 'POST ' ], 'here ' , 'there ' );
825
825
$ this ->assertSame ($ expected , $ routes ->getRoutes ());
826
826
}
827
827
0 commit comments