--TEST-- Testing indirect method call and exceptions --FILE-- Inexistent(3); } catch (Exception $e) { var_dump($e->getMessage()); // foobar } ?> --EXPECT-- string(6) "foobar"