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