I know how to check values and create tests and do the error handling if something fails, but what I din't found anywhere was the following:
A test case tests specific things. But what when unexpected errors occurs which arent a covered by a specific check of a test? Is it possible to set something like a "watchdog for error messages" up or is the only way to get this done to create a function which is called after every step?
I'm using Selenium together with PHP/PHPUnit (but not integrated into the application which I test itself). Any "best practises" or hints to get this done are very welcome.