Make WordPress Core

Changeset 1165 in tests


Ignore:
Timestamp:
12/06/2012 03:15:58 PM (14 years ago)
Author:
convissor
Message:

Remove the illusion of setting error_reporting; wp hard codes level in way too many places.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/bootstrap.php

    r1164 r1165  
    2424}
    2525require_once $config_file_path;
    26 
    27 if ( defined( 'WP_TESTS_ERROR_REPORTING' ) ) {
    28         error_reporting( WP_TESTS_ERROR_REPORTING );
    29 } else {
    30         error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
    31 }
    3226
    3327define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' );
  • trunk/wp-tests-config-sample.php

    r1164 r1165  
    99// Force known bugs: (previously -f)
    1010// define( 'WP_TESTS_FORCE_KNOWN_BUGS', true );
    11 
    12 // error_reporting() level.
    13 // If not set, test suite disables E_STRICT and E_DEPRECATED.
    14 // define( 'WP_TESTS_ERROR_REPORTING', error_reporting() );
    1511
    1612// Test with WordPress debug mode on (previously -d)
Note: See TracChangeset for help on using the changeset viewer.