public function testUntil() { $route = new Route(['method' => 'GET', 'path' => '/root', 'until' => '3.2']); $this->assertEquals('{version:(?:[0-3]\\.[0-2])|(?:[0-2]\\.\\d)}', $route->version); }