Correct usage of Covers for Tests_Update_Comment_Count_Now
When @covers is used with a plain alphanumeric string, PHPUnit assumes that it is covering a class. If there is no class, it fails and exits rather than continuing to generate coverage. To cover a global function, the name must start with `::`. See https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers See #35060, #36867 Built from https://develop.svn.wordpress.org/branches/4.5@37445 git-svn-id: http://core.svn.wordpress.org/branches/4.5@37413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d7d01a4a5e
commit
5d60412106
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5.3-alpha-37420';
|
||||
$wp_version = '4.5.3-alpha-37445';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue