--TEST-- Test base_convert() function : error conditions - incorrect input --FILE-- getMessage(), "\n"; } try { base_convert(1234, 10, 37); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } try { base_convert(new classA(), 8, 10); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- *** Testing base_convert() : error conditions *** base_convert(): Argument #2 ($frombase) must be between 2 and 36 (inclusive) base_convert(): Argument #3 ($tobase) must be between 2 and 36 (inclusive) Object of class classA could not be converted to string