Make WordPress Core

Changeset 54051


Ignore:
Timestamp:
09/01/2022 04:40:33 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Correct some @covers tags in wp_html_split() and wptexturize() tests.

As preg_split() is not a user-defined function, it causes notices when generating the code coverage report:

"@covers ::preg_split" is invalid

Instead, it appears that the intention was to test the performance of these WordPress functions:

  • get_html_split_regex()
  • _get_wptexturize_split_regex()
  • _get_wptexturize_shortcode_regex()

Follow-up to [34761], [53562].

See #39265, #55652.

Location:
trunk/tests/phpunit/tests/formatting
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.