Make WordPress Core

Changeset 54 in tests


Ignore:
Timestamp:
10/18/2007 11:22:23 AM (19 years ago)
Author:
nbachiyski
Message:

Honour @ in front of a statement and do not issue errors in that case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testlib/base.php

    r43 r54  
    3737     */
    3838    function _error_handler($errno, $errstr, $errfile, $errline) {
     39        // @ in front of statement
     40        if (0 ==  ini_get('error_reporting')) {
     41            return;
     42        }
    3943        if ($errno | $this->_phpunit_err_mask) {
    4044            PHPUnit_Util_ErrorHandler($errno, $errstr, $errfile, $errline);
Note: See TracChangeset for help on using the changeset viewer.