Răsfoiți Sursa

test: print the ICU version in the I18n debug output

locale_accept_from_http() changed its matching in ICU 67, so the ICU
version tells which behaviour each test environment should show (#2078).
El RIDO 3 zile în urmă
părinte
comite
8768801ec2
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      tst/I18nTest.php

+ 3 - 2
tst/I18nTest.php

@@ -32,9 +32,10 @@ class I18nTest extends TestCase
         fwrite(
             STDERR,
             sprintf(
-                "I18n tests: Intl extension loaded=%s; locale_accept_from_http exists=%s\n",
+                "I18n tests: Intl extension loaded=%s; locale_accept_from_http exists=%s; ICU version=%s\n",
                 extension_loaded('intl') ? 'yes' : 'no',
-                function_exists('locale_accept_from_http') ? 'yes' : 'no'
+                function_exists('locale_accept_from_http') ? 'yes' : 'no',
+                defined('INTL_ICU_VERSION') ? INTL_ICU_VERSION : 'none'
             )
         );
     }