Make WordPress Core

Changeset 1164 in tests for trunk/includes/bootstrap.php


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

Provide way to set error_reporting() level.

File:
1 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' );
Note: See TracChangeset for help on using the changeset viewer.