Skip to content

Commit 3c0c9c1

Browse files
committed
tests: added more coverage
1 parent 2e67236 commit 3c0c9c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/system/HTTP/CURLRequestTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,11 +1236,21 @@ public static function provideDNSCacheTimeout(): iterable
12361236
'expectedHasKey' => true,
12371237
'expectedValue' => 0,
12381238
],
1239+
'valid timeout (zero / disabled using string)' => [
1240+
'input' => '0',
1241+
'expectedHasKey' => true,
1242+
'expectedValue' => 0,
1243+
],
12391244
'valid timeout (forever)' => [
12401245
'input' => -1,
12411246
'expectedHasKey' => true,
12421247
'expectedValue' => -1,
12431248
],
1249+
'valid timeout (forever using string)' => [
1250+
'input' => '-1',
1251+
'expectedHasKey' => true,
1252+
'expectedValue' => -1,
1253+
],
12441254
'invalid timeout (null)' => [
12451255
'input' => null,
12461256
'expectedHasKey' => false,

0 commit comments

Comments
 (0)