mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
a5a1a4d20e
commit
208a5dd57f
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user