[wp-trac] [WordPress Trac] #31432: Unit tests are sensitive to line endings

WordPress Trac noreply at wordpress.org
Thu Mar 19 04:38:20 UTC 2015


#31432: Unit tests are sensitive to line endings
------------------------------+------------------
 Reporter:  SergeyBiryukov    |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.2
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------

Comment (by 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).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31432#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list