--TEST-- user defined error handler + set_error_handling(EH_THROW) --SKIPIF-- --FILE-- getMessage()."\n"; } ?> ==DONE== --EXPECT-- before in catch: DirectoryIterator::__construct(/this/path/does/not/exist): Failed to open directory: No such file or directory ==DONE==