[wp-trac] [WordPress Trac] #46798: PHPUnit warnings

WordPress Trac noreply at wordpress.org
Thu Apr 4 17:33:58 UTC 2019


#46798: PHPUnit warnings
------------------------------+-----------------------------
 Reporter:  azaozz            |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------------

Comment (by azaozz):

 The above failures are mostly from hard-coded line endings which fail on
 Windows:

 {{{
 Tests_Dependencies_Scripts::test_wp_set_script_translations_dependency
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
  '<script type='text/javascript' src='/wp-includes/js/dist/wp-
 i18n.js'></script>\n
  <script type='text/javascript'>\n
 -( function( domain, translations ) {\n
 -       var localeData = translations.locale_data[ domain ] ||
 translations.locale_data.messages;\n
 -       localeData[""].domain = domain;\n
 -       wp.i18n.setLocaleData( localeData, domain );\n
 +( function( domain, translations ) {\r\n
 +       var localeData = translations.locale_data[ domain ] ||
 translations.locale_data.messages;\r\n
 +       localeData[""].domain = domain;\r\n
 +       wp.i18n.setLocaleData( localeData, domain );\r\n
 }}}

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


More information about the wp-trac mailing list