WordPress.org

Make WordPress Core

Changeset 300 in tests


Ignore:
Timestamp:
05/16/10 13:37:38 (5 years ago)
Author:
westi
Message:

Respect WP_DEBUG flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r289 r300  
    122122     
    123123    // hide warnings during testing, since that's the normal WP behaviour 
    124     error_reporting(E_ALL ^ E_NOTICE); 
     124    if ( !WP_DEBUG ) { 
     125        error_reporting(E_ALL ^ E_NOTICE); 
     126    } 
    125127    // run the tests and print the results 
    126128    list ($result, $printer) = wptest_run_tests($classes, @$opts['t']); 
Note: See TracChangeset for help on using the changeset viewer.