Make WordPress Core

Changeset 40542


Ignore:
Timestamp:
04/23/2017 09:34:37 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: More tweaks to the deprecated calls assertion. This needs to be triggered when there are unexpected deprecated calls or wrongdoings too.

See #40538

File:
1 edited

Legend:

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

    r40541 r40542  
    389389        }
    390390
    391         // Perform an assertion, but only if there are expected deprecated calls or expected wrongdoings
    392         if ( ! empty( $this->expected_deprecated ) || ! empty( $this->expected_doing_it_wrong ) ) {
     391        // Perform an assertion, but only if there are expected or unexpected deprecated calls or wrongdoings
     392        if ( ! empty( $this->expected_deprecated ) ||
     393            ! empty( $this->expected_doing_it_wrong ) ||
     394            ! empty( $this->caught_deprecated ) ||
     395            ! empty( $this->caught_doing_it_wrong ) ) {
    393396            $this->assertEmpty( $errors, implode( "\n", $errors ) );
    394397        }
Note: See TracChangeset for help on using the changeset viewer.