Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use the data_ prefix for various data provider methods.

This aims to bring more consistency to the test suite, as the vast majority of data providers already use that prefix.

Includes moving some data providers next to the tests they are used in.

Follow-up to [55464].

See #57841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/compat/mbSubstr.php

    r55037 r55562  
    1818
    1919    /**
    20      * @dataProvider utf8_substrings
     20     * @dataProvider data_utf8_substrings
    2121     */
    2222    public function test_mb_substr( $input_string, $start, $length, $expected_character_substring ) {
     
    2525
    2626    /**
    27      * @dataProvider utf8_substrings
     27     * @dataProvider data_utf8_substrings
    2828     */
    2929    public function test_mb_substr_via_regex( $input_string, $start, $length, $expected_character_substring ) {
     
    3434
    3535    /**
    36      * @dataProvider utf8_substrings
     36     * @dataProvider data_utf8_substrings
    3737     */
    3838    public function test_8bit_mb_substr( $input_string, $start, $length, $expected_character_substring, $expected_byte_substring ) {
     
    4545     * @return array
    4646     */
    47     public function utf8_substrings() {
     47    public function data_utf8_substrings() {
    4848        return array(
    4949            array(
Note: See TracChangeset for help on using the changeset viewer.