php-src/ext/standard/tests/math/log_error.phpt
2020-03-18 19:56:10 +01:00

14 lines
247 B
PHP

--TEST--
Test log() - wrong params test log()
--INI--
precision=14
--FILE--
<?php
try {
log(36, -4);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
log(): Argument #2 ($base) must be greater than 0