public function patch($path, $options, $requirements = []) { return $this->addRoute($path, $options, $requirements)->setMethods([Request::METHOD_PATCH]); }
/** * @test */ public function testPatch() { $route = $this->app->patch('/path', function () { /* do nothing */ }); $this->assertEquals([Request::METHOD_PATCH], $route->getMethods()); }