[wp-trac] [WordPress Trac] #31432: Unit tests are sensitive to line endings
WordPress Trac
noreply at wordpress.org
Mon Oct 28 02:52:27 UTC 2019
#31432: Unit tests are sensitive to line endings
------------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+---------------------
Comment (by SergeyBiryukov):
Replying to [comment:3 dd32]:
> The alternative is that we introduce a `AssertEqualsIgnoreEOL()` style
function, or even extend `assertEquals` to `assertEquals($one, $two,
$message = '', $allow_mismatched_EOL = true)` in our unit test class
(which I don't really like).
Introducing something like `assertEqualsIgnoreEOL()` makes sense to me.
We already have `assertDiscardWhitespace()`, which is not really used
anywhere though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31432#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list