Skip to content

Commit 3fe5b93

Browse files
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
1 parent ef326a6 commit 3fe5b93

10 files changed

Lines changed: 0 additions & 17 deletions

File tree

tests/phpunit/tests/compat/arrayKeyFirst.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::array_key_first
75
*/
86
class Tests_Compat_arrayKeyFirst extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/arrayKeyLast.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::array_key_last
75
*/
86
class Tests_Compat_ArrayKeyLast extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/hashHmac.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/**
44
* @group compat
55
*
6-
* @covers ::hash_hmac
76
* @covers ::_hash_hmac
87
*/
98
class Tests_Compat_hashHmac extends WP_UnitTestCase {

tests/phpunit/tests/compat/isCountable.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::is_countable
75
*/
86
class Tests_Compat_isCountable extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/isIterable.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::is_iterable
75
*/
86
class Tests_Compat_isIterable extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/mbStrlen.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* @group compat
55
* @group security-153
66
*
7-
* @covers ::mb_strlen
87
* @covers ::_mb_strlen
98
*/
109
class Tests_Compat_mbStrlen extends WP_UnitTestCase {

tests/phpunit/tests/compat/mbSubstr.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* @group compat
55
* @group security-153
66
*
7-
* @covers ::mb_substr
87
* @covers ::_mb_substr
98
*/
109
class Tests_Compat_mbSubstr extends WP_UnitTestCase {

tests/phpunit/tests/compat/strContains.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::str_contains
75
*/
86
class Tests_Compat_strContains extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/strEndsWith.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::str_ends_with
75
*/
86
class Tests_Compat_StrEndsWith extends WP_UnitTestCase {
97

tests/phpunit/tests/compat/strStartsWith.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
/**
44
* @group compat
5-
*
6-
* @covers ::str_starts_with
75
*/
86
class Tests_Compat_StrStartsWith extends WP_UnitTestCase {
97

0 commit comments

Comments
 (0)