Missing backported error handler in _drupal_bootstrap_full()
Dave Reid - October 13, 2009 - 16:12
| Project: | SimpleTest |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | boombatower |
| Status: | closed |
Description
I want to add debugging or verbose messages that are executed when my tests call drupalGet or drupalPost(). This currently seems impossible because when debug() is called from the executing code, it gets shown as a message 'in' the browser and never makes it to SimpleTest collector.

#1
I can't even use simpletest_verbose() either. :/ Using DWTC->verbose() is out of the question because again, we're wanting to add this debugging info from normal code when tests are run, not inside the actual tests where ->verbose() is available.
Help me boombatower! You're my only hope!
#2
Hmm...not sure if I forgot to include the following lines in patch or what, because I know I had this working.
Eithere way just adding:
<?phpset_error_handler('_drupal_error_handler');
set_exception_handler('_drupal_exception_handler');
?>
to common.inc _drupal_bootstrap_full() makes it happen.
I'll re-roll patch and make a patch of the patch :)
#3
#4
Committed.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.