[wp-trac] [WordPress Trac] #57718: Account for Windows line endings in `Tests_Formatting_wpAutop::test_skip_block_math_elements()`

WordPress Trac noreply at wordpress.org
Tue Feb 14 16:27:39 UTC 2023


#57718: Account for Windows line endings in
`Tests_Formatting_wpAutop::test_skip_block_math_elements()`
----------------------------------------+---------------------
 Reporter:  davidbaumwald               |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.2
Component:  Build/Test Tools            |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:57718 davidbaumwald]:
 > Perhaps the fix here is `assertSameIgnoreEOL` in place of `assertSame`?

 Yes, that should work and would be consistent with other similar
 assertions in the same test class.

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


More information about the wp-trac mailing list