http://www.perlmonks.org?node_id=413247


in reply to Re^2: Test::More usage to test functions that die
in thread Test::More usage to test functions that die

I know that the code as written won't work, which is why I labeled it pseudocode. But thanks for clarifying.

Yes, this is essentially the MockObject strategy. Thanks for adding the links.