Make WordPress Core


Ignore:
Timestamp:
10/29/2019 02:26:41 PM (6 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/functions/getArchives.php

    r46586 r46612  
    7272    <li><a href='$link5'>$title5</a></li>
    7373EOF;
    74         $this->assertEquals(
     74        $this->assertEqualsIgnoreEOL(
    7575            $expected['limit'],
    7676            trim(
     
    154154    <li><a href='{$this->month_url}'>$date_full</a></li>
    155155EOF;
    156         $this->assertEquals(
     156        $this->assertEqualsIgnoreEOL(
    157157            $expected['order_asc'],
    158158            trim(
     
    170170    <li><a href='{$oct_url}'>October 2012</a></li>
    171171EOF;
    172         $this->assertEquals(
     172        $this->assertEqualsIgnoreEOL(
    173173            $expected['order_desc'],
    174174            trim(
Note: See TracChangeset for help on using the changeset viewer.