소스 검색

test: add debug output for I18n tests

rugk 1 주 전
부모
커밋
698c37465b
1개의 변경된 파일과 13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      tst/I18nTest.php

+ 13 - 0
tst/I18nTest.php

@@ -26,6 +26,19 @@ class I18nTest extends TestCase
 {
 {
     private $_translations = [];
     private $_translations = [];
 
 
+    public static function setUpBeforeClass(): void
+    {
+        parent::setUpBeforeClass();
+        fwrite(
+            STDERR,
+            sprintf(
+                "I18n tests: Intl extension loaded=%s; locale_accept_from_http exists=%s\n",
+                extension_loaded('intl') ? 'yes' : 'no',
+                function_exists('locale_accept_from_http') ? 'yes' : 'no'
+            )
+        );
+    }
+
     public function setUp(): void
     public function setUp(): void
     {
     {
         /* Setup Routine */
         /* Setup Routine */