Make WordPress Core


Ignore:
Timestamp:
06/23/2022 08:27:34 PM (2 years ago)
Author:
azaozz
Message:

Build/Test Tools, Formatting group:

  • Add and update @covers tags.
  • Add and improve docs and inline comments.

Props pbeane, hellofromTonya, antonvlasenko, ironprogrammer, SergeyBiryukov, costdev.
See #39265.

File:
1 edited

Legend:

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

    r52010 r53562  
    77 * @group formatting
    88 * @expectedDeprecated clean_pre
     9 *
     10 * @covers ::clean_pre
    911 */
    1012class Tests_Formatting_CleanPre extends WP_UnitTestCase {
     
    2325    }
    2426
    25     // I don't think this can ever happen in production;
    26     // <br> is changed to <br /> elsewhere. Left in because
    27     // that replacement shouldn't happen (what if you want
    28     // HTML 4 output?).
     27
     28    /**
     29     * I don't think this can ever happen in production;
     30     * <br> is changed to <br /> elsewhere. Left in because
     31     * that replacement shouldn't happen (what if you want
     32     * HTML 4 output?).
     33     */
    2934    public function test_removes_html_br() {
    3035        $source = 'a b c\n<br>sldfj<br>';
Note: See TracChangeset for help on using the changeset viewer.