File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1229,6 +1229,10 @@ public static function provideDNSCacheTimeout(): iterable
12291229 'expectedHasKey ' => true ,
12301230 'expectedValue ' => '180 ' ,
12311231 ],
1232+ 'invalid timeout (null) ' => [
1233+ 'input ' => null ,
1234+ 'expectedHasKey ' => false ,
1235+ ],
12321236 'invalid timeout (string) ' => [
12331237 'input ' => 'is_wrong ' ,
12341238 'expectedHasKey ' => false ,
@@ -1245,7 +1249,7 @@ public static function provideDNSCacheTimeout(): iterable
12451249 }
12461250
12471251 #[DataProvider('provideDNSCacheTimeout ' )]
1248- public function testDNSCacheTimeoutOption ($ input , bool $ expectedHasKey , $ expectedValue = null ): void
1252+ public function testDNSCacheTimeoutOption (string | int | null $ input , bool $ expectedHasKey , string | int | null $ expectedValue = null ): void
12491253 {
12501254 $ this ->request ->request ('POST ' , '/post ' , [
12511255 'dns_cache_timeout ' => $ input ,
You can’t perform that action at this time.
0 commit comments