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