Skip to content

Commit 3dadf05

Browse files
committed
test: update error message for zstd_uncompress to reflect correct argument expectation
1 parent cd8b88d commit 3dadf05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var_dump(zstd_uncompress($testclass));
2222
--EXPECTF--
2323
*** Testing zstd_uncompress() function with Zero arguments ***
2424

25-
Warning: zstd_uncompress() expects exactly 1 parameter, 0 given in %s on line %d
25+
Warning: zstd_uncompress() expects at least 1 parameter, 0 given in %s on line %d
2626
bool(false)
2727
*** Testing with incorrect arguments ***
2828

tests/005_b.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ try {
3333
===DONE===
3434
--EXPECTF--
3535
*** Testing zstd_uncompress() function with Zero arguments ***
36-
ArgumentCountError: zstd_uncompress() expects exactly 1 argument, 0 given in %s:%d
36+
ArgumentCountError: zstd_uncompress() expects at least 1 argument, 0 given in %s:%d
3737
Stack trace:
3838
#0 %s(%d): zstd_uncompress()
3939
#1 {main}

tests/named_args.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ zstd_compress(): Argument #1 ($data) not passed
7070
string(6) "string"
7171
bool(true)
7272
** zstd_uncompress(): false **
73-
zstd_uncompress() expects exactly 1 argument, 0 given
73+
zstd_uncompress() expects at least 1 argument, 0 given
7474
** zstd_uncompress(data:) **
7575
string(6) "string"
7676
bool(true)

0 commit comments

Comments
 (0)