/** * Test the patch method */ public function testPatch() { $this->router->patch('/patch/route', function () { }); $routes = $this->router->getRoutesByMethod('PATCH'); $this->assertEquals(1, count($routes)); }