WordPress.org

Make WordPress Core

Changeset 1164 in tests


Ignore:
Timestamp:
12/06/2012 01:53:34 PM (5 years ago)
Author:
convissor
Message:

Provide way to set error_reporting() level.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/bootstrap.php

    r1101 r1164  
    44 */
    55
    6 error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
    76
    87require_once 'PHPUnit/Autoload.php';
     
    2524}
    2625require_once $config_file_path;
     26
     27if ( defined( 'WP_TESTS_ERROR_REPORTING' ) ) {
     28    error_reporting( WP_TESTS_ERROR_REPORTING );
     29} else {
     30    error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
     31}
    2732
    2833define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' );
  • trunk/wp-tests-config-sample.php

    r945 r1164  
    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() );
    1115
    1216// Test with WordPress debug mode on (previously -d)
Note: See TracChangeset for help on using the changeset viewer.