WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2019 02:26:41 PM (2 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/blocks/render.php

    r46586 r46612  
    6161        $actual_html = do_blocks( $original_html );
    6262
    63         $this->assertEquals( $expected_html, $actual_html );
     63        $this->assertEqualsIgnoreEOL( $expected_html, $actual_html );
    6464    }
    6565
Note: See TracChangeset for help on using the changeset viewer.