Make WordPress Core


Ignore:
Timestamp:
03/19/2023 12:03:30 PM (21 months 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/formatting/escXml.php

    r53562 r55562  
    1010     * Test basic escaping
    1111     *
    12      * @dataProvider _test_esc_xml_basics_dataprovider
     12     * @dataProvider data_esc_xml_basics
    1313     *
    1414     * @param string $source   The source string to be escaped.
     
    2828     * }
    2929     */
    30     public function _test_esc_xml_basics_dataprovider() {
     30    public function data_esc_xml_basics() {
    3131        return array(
    3232            // Simple string.
     
    8585     * Test that CDATA Sections are not escaped.
    8686     *
    87      * @dataProvider _test_ignores_cdata_sections_dataprovider
     87     * @dataProvider data_ignores_cdata_sections
    8888     *
    8989     * @param string $source   The source string to be escaped.
     
    103103     * }
    104104     */
    105     public function _test_ignores_cdata_sections_dataprovider() {
     105    public function data_ignores_cdata_sections() {
    106106        return array(
    107107            // basic CDATA Section containing chars that would otherwise be escaped if not in a CDATA Section
Note: See TracChangeset for help on using the changeset viewer.