WordPress.org

Make WordPress Core

Changeset 51479


Ignore:
Timestamp:
07/22/2021 05:26:00 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Tests: Correct placement of the $message parameter in assertDiscardWhitespace().

Follow-up to [51478].

Props johnbillion.
See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r51478 r51479  
    678678     */
    679679    public function assertDiscardWhitespace( $expected, $actual, $message = '' ) {
    680         $this->assertEquals( preg_replace( '/\s*/', '', $expected ), preg_replace( '/\s*/', '', $actual, $message ) );
     680        $this->assertEquals( preg_replace( '/\s*/', '', $expected ), preg_replace( '/\s*/', '', $actual ), $message );
    681681    }
    682682
Note: See TracChangeset for help on using the changeset viewer.