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

See #40538


git-svn-id: https://develop.svn.wordpress.org/trunk@40535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-04-23 01:44:13 +00:00
parent a5a1a4d20e
commit 208a5dd57f
1 changed files with 1 additions and 3 deletions

View File

@ -388,9 +388,7 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
$errors[] = "Unexpected incorrect usage notice for $unexpected";
}
if ( ! empty( $errors ) ) {
$this->fail( implode( "\n", $errors ) );
}
$this->assertEmpty( $errors, implode( "\n", $errors ) );
}
/**