diff options
Diffstat (limited to 'ext/standard/tests/math/log_error.phpt')
| -rw-r--r-- | ext/standard/tests/math/log_error.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/tests/math/log_error.phpt b/ext/standard/tests/math/log_error.phpt new file mode 100644 index 000000000..77084a4ec --- /dev/null +++ b/ext/standard/tests/math/log_error.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test log() - wrong params test log() +--INI-- +precision=14 +--FILE-- +<?php +log(); +log(36,4,true); +log(36, -4); +?> +--EXPECTF-- + +Warning: Wrong parameter count for log() in %s on line 2 + +Warning: Wrong parameter count for log() in %s on line 3 + +Warning: log(): base must be greater than 0 in %s on line 4 |
