--TEST-- Convert errors to exceptions from method calls on non-objects raise recoverable errors --FILE-- method(); } catch (BadMethodCallException $e) { echo "Caught expected ", $e->getMessage(), "!\n"; } echo "Alive\n"; ?> --EXPECTF-- Calling... Raising... Caught expected Call to a member function method() on null! Alive