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