Make WordPress Core


Ignore:
Timestamp:
04/23/2017 01:44:13 AM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Ensure that WP_UnitTestCase::expectedDeprecated() performs an assertion to avoid risky test notices.

See #40538

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r40523 r40535  
    389389        }
    390390
    391         if ( ! empty( $errors ) ) {
    392             $this->fail( implode( "\n", $errors ) );
    393         }
     391        $this->assertEmpty( $errors, implode( "\n", $errors ) );
    394392    }
    395393
Note: See TracChangeset for help on using the changeset viewer.