public function testGetMethods() { $route = new Route('GET', '/test', ['uses' => Controller::class . '::string']); $this->assertSame(['GET', 'HEAD'], $route->getMethods()); $route = new Route('PUT', '/test', ['uses' => Controller::class . '::string']); $this->assertSame(['PUT'], $route->getMethods()); $route = new Route(['GET', 'POST'], '/test', ['uses' => Controller::class . '::string']); $this->assertSame(['GET', 'POST', 'HEAD'], $route->getMethods()); }