WordPress.org

Make WordPress Core

Changeset 507 in tests


Ignore:
Timestamp:
02/01/12 22:04:06 (2 years ago)
Author:
convissor
Message:

PHP 5.4 brings E_STRICT into E_ALL, adjust tests accordingly. Turn off E_DEPRECATED as is done in core wp_debug_mode().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r504 r507  
    8787 
    8888// make sure all useful errors are displayed during setup 
    89 error_reporting(E_ALL & ~E_DEPRECATED); 
     89error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); 
    9090ini_set('display_errors', true); 
    9191 
     
    202202    // hide warnings during testing, since that's the normal WP behaviour 
    203203    if ( !WP_DEBUG ) { 
    204         error_reporting(E_ALL ^ E_NOTICE); 
     204        error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE ); 
    205205    } 
    206206    // run the tests and print the results 
Note: See TracChangeset for help on using the changeset viewer.