Improved handling of expectedDeprecated and expectedIncorrectUsage annotations in unit tests.

* Do the `expectedDeprecated()` check in `assertPostConditions()` instead of `tearDown()`. Previously, `fail`ing inside of `tearDown()` was causing the rest of the teardown process to be aborted, resulting in inter-test leakage.
* Collect all `expectedDeprecated` and `expectedIncorrectUsage` annotations in an entire method and display them all when `fail`ing, instead of showing only the first one.

Props jdgrimes.
Fixes #31362.
Built from https://develop.svn.wordpress.org/trunk@31469


git-svn-id: http://core.svn.wordpress.org/trunk@31450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-02-17 16:12:28 +00:00
parent a224ff7d9b
commit 2686db917a

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31467';
$wp_version = '4.2-alpha-31469';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.