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