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/mbStrlen.php

    r55036 r55562  
    1818
    1919    /**
    20      * @dataProvider utf8_string_lengths
     20     * @dataProvider data_utf8_string_lengths
    2121     */
    2222    public function test_mb_strlen( $input_string, $expected_character_length ) {
     
    2525
    2626    /**
    27      * @dataProvider utf8_string_lengths
     27     * @dataProvider data_utf8_string_lengths
    2828     */
    2929    public function test_mb_strlen_via_regex( $input_string, $expected_character_length ) {
     
    3434
    3535    /**
    36      * @dataProvider utf8_string_lengths
     36     * @dataProvider data_utf8_string_lengths
    3737     */
    3838    public function test_8bit_mb_strlen( $input_string, $expected_character_length, $expected_byte_length ) {
     
    4545     * @return array
    4646     */
    47     public function utf8_string_lengths() {
     47    public function data_utf8_string_lengths() {
    4848        return array(
    4949            array(
Note: See TracChangeset for help on using the changeset viewer.