bcsqrt_error2.phpt 237 B

12345678910111213141516
  1. --TEST--
  2. bcsqrt() requires a well-formed value
  3. --EXTENSIONS--
  4. bcmath
  5. --FILE--
  6. <?php
  7. try {
  8. bcsqrt('a');
  9. } catch (\ValueError $e) {
  10. echo $e->getMessage() . PHP_EOL;
  11. }
  12. ?>
  13. --EXPECT--
  14. bcsqrt(): Argument #1 ($num) is not well-formed