mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 08:04:27 +01:00
Tests: Remove @covers
tags for native PHP functions in phpunit/tests/compat/
.
As these are not user-defined functions, they cause notices when generating the code coverage report: {{{ "@covers ::array_key_first" is invalid "@covers ::array_key_last" is invalid "@covers ::hash_hmac" is invalid "@covers ::is_countable" is invalid "@covers ::is_iterable" is invalid "@covers ::mb_strlen" is invalid "@covers ::mb_substr" is invalid "@covers ::str_contains" is invalid "@covers ::str_ends_with" is invalid "@covers ::str_starts_with" is invalid }}} Follow-up to [51852], [52038], [52039], [52040]. See #39265, #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef326a6545
commit
3fe5b93277
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::array_key_first
|
||||
*/
|
||||
class Tests_Compat_arrayKeyFirst extends WP_UnitTestCase {
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::array_key_last
|
||||
*/
|
||||
class Tests_Compat_ArrayKeyLast extends WP_UnitTestCase {
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::hash_hmac
|
||||
* @covers ::_hash_hmac
|
||||
*/
|
||||
class Tests_Compat_hashHmac extends WP_UnitTestCase {
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::is_countable
|
||||
*/
|
||||
class Tests_Compat_isCountable extends WP_UnitTestCase {
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::is_iterable
|
||||
*/
|
||||
class Tests_Compat_isIterable extends WP_UnitTestCase {
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
* @group compat
|
||||
* @group security-153
|
||||
*
|
||||
* @covers ::mb_strlen
|
||||
* @covers ::_mb_strlen
|
||||
*/
|
||||
class Tests_Compat_mbStrlen extends WP_UnitTestCase {
|
||||
|
@ -4,7 +4,6 @@
|
||||
* @group compat
|
||||
* @group security-153
|
||||
*
|
||||
* @covers ::mb_substr
|
||||
* @covers ::_mb_substr
|
||||
*/
|
||||
class Tests_Compat_mbSubstr extends WP_UnitTestCase {
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::str_contains
|
||||
*/
|
||||
class Tests_Compat_strContains extends WP_UnitTestCase {
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::str_ends_with
|
||||
*/
|
||||
class Tests_Compat_StrEndsWith extends WP_UnitTestCase {
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
/**
|
||||
* @group compat
|
||||
*
|
||||
* @covers ::str_starts_with
|
||||
*/
|
||||
class Tests_Compat_StrStartsWith extends WP_UnitTestCase {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user