@@ -73,6 +73,21 @@ public function setUp(): void
73
73
->queryParam ('two ' , '2 ' )
74
74
->willRespond (new MockResponseBuilder ()),
75
75
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
+
76
91
'post_uri_json ' => (new MockRequestBuilder ())
77
92
->name ('post_uri_json ' )
78
93
->method ('POST ' )
@@ -127,7 +142,7 @@ public function setUp(): void
127
142
#[DataProvider('requests ' )]
128
143
public function testRequestMatching (string $ method , string $ uri , array $ options , string $ index ): void
129
144
{
130
- $ x = ($ this ->collection )($ method , $ uri , $ options );
145
+ ($ this ->collection )($ method , $ uri , $ options );
131
146
132
147
$ expectedMockRequestBuilder = $ this ->builders [$ index ];
133
148
@@ -236,6 +251,8 @@ public static function requests(): array
236
251
'getUri ' => ['GET ' , '/uri ' , [], 'get_uri ' ],
237
252
'getUriWithOneParam ' => ['GET ' , '/uri?one=1 ' , [], 'get_uri_param ' ],
238
253
'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 ' ],
239
256
'postUri ' => ['POST ' , '/uri ' , [], 'post ' ],
240
257
'postUriJson ' => ['POST ' , '/uri ' , ['json ' => ['json ' => 'data ' ]], 'post_uri_json ' ],
241
258
'postUriXml ' => [
0 commit comments