diff --git a/tests/Router/UrlGeneratorTest.php b/tests/Router/UrlGeneratorTest.php index 0947d2434..58c8542ca 100644 --- a/tests/Router/UrlGeneratorTest.php +++ b/tests/Router/UrlGeneratorTest.php @@ -510,4 +510,13 @@ public function testStripSegments() http_build_url($segments, [], HTTP_URL_STRIP_PORT | HTTP_URL_STRIP_QUERY | HTTP_URL_STRIP_FRAGMENT) ); } + + public function testQueryArgsArray() + { + $url = 'https://www.example.com/path?array[]=v1&array[]=v2'; + $generator = new \Winter\Storm\Router\UrlGenerator(new RouteCollection, Request::create($url)); + $baseGenerator = new \Illuminate\Routing\UrlGenerator(new RouteCollection, Request::create($url)); + + $this->assertEquals($generator->to($url), $baseGenerator->to($url)); + } }