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

Dave Reid - October 20, 2009 - 14:46

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

boombatower - November 6, 2009 - 21:39
Category:support request» bug report
Assigned to:Anonymous» boombatower

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:

<?php
  set_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

boombatower - November 6, 2009 - 21:42
Title:Adding debug messages for testing *not* insides tests» Missing backported error handler in _drupal_bootstrap_full()
Status:active» needs review
AttachmentSize
603410-error-handler.patch 2.57 KB

#4

boombatower - November 6, 2009 - 21:43
Status:needs review» fixed

Committed.

#5

System Message - November 20, 2009 - 21:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.