Fixes GH-765

Fixed fatal error triggered in PHPUnit when exception is thrown in data provider of a test with a dependency.