[wp-trac] [WordPress Trac] #39265: Missing @covers in the comment blocks in PHPUnit tests
WordPress Trac
noreply at wordpress.org
Thu Sep 1 16:40:47 UTC 2022
#39265: Missing @covers in the comment blocks in PHPUnit tests
-------------------------------------------+-----------------------------
Reporter: pbearne | Owner: hellofromTonya
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 6.1
Component: Build/Test Tools | Version: 4.8
Severity: normal | Resolution:
Keywords: php8 has-patch has-unit-tests | Focuses:
-------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"54051" 54051]:
{{{
#!CommitTicketReference repository="" revision="54051"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39265#comment:111>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list