Skip to content

Fail the test if new PHP warnings/errors are thrown into Drupal watchdog

PHPUnit will fail a test if the test itself raise PHP warnings/errors. However, when using the driver to navigate Drupal pages, if the request throws new watchdog messages, these aren't surfaced to PHPUnit. It would be nice to automatically fail a test if any new PHP warning/error is generated during the test execution.

Edited by marcoscano

Merge request reports