@@ -139,48 +139,33 @@ public function testWithPortCannotBeZero():void{
139
139
(new Uri )->withPort (0 );
140
140
}
141
141
142
- /* public function testParseUriPortCannotBeZero():void{
143
-
144
- // @todo: this test can either be removed ot the behaviour changed in the Uri class.
145
-
146
- if(\PHP_VERSION_ID < 70413){ // fixed in 7.4.13, 7.3.25
147
- $this::markTestSkipped('https://bugs.php.net/bug.php?id=80266');
148
- return;
149
- }
150
-
151
- $this->expectException(InvalidArgumentException::class);
152
- $this->expectExceptionMessage('invalid URI: "//example.com:0');
153
-
154
- new Uri('//example.com:0');
155
- }*/
156
-
157
142
public function testSchemeMustHaveCorrectType ():void {
158
143
$ this ->expectException (InvalidArgumentException::class);
159
-
144
+ /** @noinspection PhpParamsInspection */
160
145
(new Uri )->withScheme ([]);
161
146
}
162
147
163
148
public function testHostMustHaveCorrectType ():void {
164
149
$ this ->expectException (InvalidArgumentException::class);
165
-
150
+ /** @noinspection PhpParamsInspection */
166
151
(new Uri )->withHost ([]);
167
152
}
168
153
169
154
public function testPathMustHaveCorrectType ():void {
170
155
$ this ->expectException (InvalidArgumentException::class);
171
-
156
+ /** @noinspection PhpParamsInspection */
172
157
(new Uri )->withPath ([]);
173
158
}
174
159
175
160
public function testQueryMustHaveCorrectType ():void {
176
161
$ this ->expectException (InvalidArgumentException::class);
177
-
162
+ /** @noinspection PhpParamsInspection */
178
163
(new Uri )->withQuery ([]);
179
164
}
180
165
181
166
public function testFragmentMustHaveCorrectType ():void {
182
167
$ this ->expectException (InvalidArgumentException::class);
183
-
168
+ /** @noinspection PhpParamsInspection */
184
169
(new Uri )->withFragment ([]);
185
170
}
186
171
@@ -349,12 +334,6 @@ public function uriComponentsEncodingProvider():array{
349
334
350
335
/**
351
336
* @dataProvider uriComponentsEncodingProvider
352
- *
353
- * @param $input
354
- * @param $path
355
- * @param $query
356
- * @param $fragment
357
- * @param $output
358
337
*/
359
338
public function testUriComponentsGetEncodedProperly (
360
339
string $ input ,
0 commit comments