--TEST-- gmp_legendre() basic tests --EXTENSIONS-- gmp --FILE-- getMessage() . \PHP_EOL; } try { var_dump(gmp_legendre(array(), 3)); } catch (\TypeError $e) { echo $e->getMessage() . \PHP_EOL; } try { var_dump(gmp_legendre(array(), array())); } catch (\TypeError $e) { echo $e->getMessage() . \PHP_EOL; } echo "Done\n"; ?> --EXPECT-- string(1) "0" string(2) "-1" string(1) "0" string(1) "0" string(2) "-1" string(1) "0" string(1) "0" string(2) "-1" string(1) "0" string(1) "0" string(2) "-1" string(2) "-1" string(1) "0" string(1) "0" string(2) "-1" string(1) "0" string(2) "-1" gmp_legendre(): Argument #2 ($num2) must be of type GMP|string|int, array given gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given gmp_legendre(): Argument #1 ($num1) must be of type GMP|string|int, array given Done