php-8.0.30-src/ext/standard/tests/math/log_error.phpt

15 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