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