@@ -73,6 +73,21 @@ public function setUp(): void
7373 ->queryParam ('two ' , '2 ' )
7474 ->willRespond (new MockResponseBuilder ()),
7575
76+ 'get_uri_array_param1 ' => (new MockRequestBuilder ())
77+ ->name ('get_uri_array_param1 ' )
78+ ->method ('GET ' )
79+ ->uri ('/uri ' )
80+ ->queryParam ('name[] ' , 'abc ' )
81+ ->queryParam ('name[] ' , 'def ' )
82+ ->willRespond (new MockResponseBuilder ()),
83+
84+ 'get_uri_array_param2 ' => (new MockRequestBuilder ())
85+ ->name ('get_uri_array_param2 ' )
86+ ->method ('GET ' )
87+ ->uri ('/uri ' )
88+ ->queryParam ('test ' , ['123 ' , '456 ' ])
89+ ->willRespond (new MockResponseBuilder ()),
90+
7691 'post_uri_json ' => (new MockRequestBuilder ())
7792 ->name ('post_uri_json ' )
7893 ->method ('POST ' )
@@ -127,7 +142,7 @@ public function setUp(): void
127142 #[DataProvider('requests ' )]
128143 public function testRequestMatching (string $ method , string $ uri , array $ options , string $ index ): void
129144 {
130- $ x = ($ this ->collection )($ method , $ uri , $ options );
145+ ($ this ->collection )($ method , $ uri , $ options );
131146
132147 $ expectedMockRequestBuilder = $ this ->builders [$ index ];
133148
@@ -236,6 +251,8 @@ public static function requests(): array
236251 'getUri ' => ['GET ' , '/uri ' , [], 'get_uri ' ],
237252 'getUriWithOneParam ' => ['GET ' , '/uri?one=1 ' , [], 'get_uri_param ' ],
238253 'getUriWithTwoParams ' => ['GET ' , '/uri?one=1&two=2 ' , [], 'get_uri_params ' ],
254+ 'getUriWithArrayParam1 ' => ['GET ' , '/uri?name[]=abc&name[]=def ' , [], 'get_uri_array_param1 ' ],
255+ 'getUriWithArrayParam2 ' => ['GET ' , '/uri?test[]=123&test[]=456 ' , [], 'get_uri_array_param2 ' ],
239256 'postUri ' => ['POST ' , '/uri ' , [], 'post ' ],
240257 'postUriJson ' => ['POST ' , '/uri ' , ['json ' => ['json ' => 'data ' ]], 'post_uri_json ' ],
241258 'postUriXml ' => [
0 commit comments