Ver código fonte

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 dias atrás
pai
commit
8768801ec2
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      tst/I18nTest.php

+ 3 - 2
tst/I18nTest.php

@@ -32,9 +32,10 @@ class I18nTest extends TestCase
         fwrite(
         fwrite(
             STDERR,
             STDERR,
             sprintf(
             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',
                 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'
             )
             )
         );
         );
     }
     }