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

WordPress Trac noreply at wordpress.org
Tue Feb 14 16:22:42 UTC 2023


#57718: Account 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            |   Keywords:  needs-patch good-first-bug
  Focuses:                    |
------------------------------+----------------------------------------
 [55272] added support for `<math>` block elements in `wpautop()`.

 On Windows systems, one of the added tests for the changes in [55272]
 fails:

 {{{
 1) Tests_Formatting_wpAutop::test_skip_block_math_elements
 Failed asserting that two strings are identical.
 ...
 #Warning: Strings contain different line endings!
 }}}

 Perhaps the fix here is `assertSameIgnoreEOL` in place of `assertSame`?

 CC @SergeyBiryukov.

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


More information about the wp-trac mailing list