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