Make WordPress Core


Ignore:
Timestamp:
09/01/2022 04:40:33 PM (3 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/wpTexturize.php

    r53562 r54051  
    21752175     * @dataProvider data_whole_posts
    21762176     *
    2177      * @covers ::preg_split
     2177     * @covers ::_get_wptexturize_split_regex
     2178     * @covers ::_get_wptexturize_shortcode_regex
    21782179     */
    21792180    public function test_pcre_performance( $input ) {
Note: See TracChangeset for help on using the changeset viewer.