From dc568b181b1877409f1caf25c4c6ed53c6643ea8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 22 Jul 2021 17:26:00 +0000 Subject: [PATCH] Tests: Correct placement of the `$message` parameter in `assertDiscardWhitespace()`. Follow-up to [51478]. Props johnbillion. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51479 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/abstract-testcase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php index 4abd973c73..b33991af64 100644 --- a/tests/phpunit/includes/abstract-testcase.php +++ b/tests/phpunit/includes/abstract-testcase.php @@ -677,7 +677,7 @@ abstract class WP_UnitTestCase_Base extends PHPUnit\Framework\TestCase { * @param string $message Optional. Message to display when the assertion fails. */ public function assertDiscardWhitespace( $expected, $actual, $message = '' ) { - $this->assertEquals( preg_replace( '/\s*/', '', $expected ), preg_replace( '/\s*/', '', $actual, $message ) ); + $this->assertEquals( preg_replace( '/\s*/', '', $expected ), preg_replace( '/\s*/', '', $actual ), $message ); } /**