Make WordPress Core


Ignore:
Timestamp:
10/29/2019 02:26:41 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Ignore EOL differences in tests using multiline string assertions.

Unix vs. Windows EOL style mismatches can cause misleading failures in tests using the heredoc syntax (<<<) or multiline strings as the expected result.

Fixes #31432. See #42594, #47411.

File:
1 edited

Legend:

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

    r46586 r46612  
    210210I thought you might want to sign up for this newsletter
    211211EOT;
     212        $body       = str_replace( "\r\n", "\n", $body );
    212213        $email_link = 'mailto:?body=' . rawurlencode( $body );
    213214        $email_link = esc_url( $email_link );
     
    224225I thought you might want to sign up for this newsletter
    225226EOT;
     227        $body       = str_replace( "\r\n", "\n", $body );
    226228        $email_link = 'http://example.com/mailto:?body=' . rawurlencode( $body );
    227229        $email_link = esc_url( $email_link );
Note: See TracChangeset for help on using the changeset viewer.