php-src/ext/bcmath/tests/bcsqrt_error2.phpt
Max Semenik 56f90492d6 Migrate skip checks to --EXTENSIONS--, p1
For rationale, see https://github.com/php/php-src/pull/6787

Extensions migrated in this part:
* bcmath
* bz2
* calendar
* com_dotnet
* ctype

Closes GH-6797.
2021-03-22 17:51:02 +01:00

17 lines
237 B
PHP

--TEST--
bcsqrt() requires a well-formed value
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
bcsqrt('a');
} catch (\ValueError $e) {
echo $e->getMessage() . PHP_EOL;
}
?>
--EXPECT--
bcsqrt(): Argument #1 ($num) is not well-formed