From f8a42697512d45b2ab4f21d764d33dc5134162cd Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 21 May 2025 20:55:24 +0200 Subject: [PATCH] tests: Use GLOB_BRACE in JsonSchemaAssertionTraitTest Without brace expansion the result is empty. The test counts as skipped test Follow-Up: I757eb043f8043d6620fb69bd072d9bb9e97ad163 Change-Id: I394c58887a30befe25ed72897bf0608b49f37b0d (cherry picked from commit 030a951e142d15e90fbee16d2bf1571505e4c2a6) --- tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php b/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php index a6a96fdbab5..855f31f665c 100644 --- a/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php +++ b/tests/phpunit/unit/tests/JsonSchemaAssertionTraitTest.php @@ -33,7 +33,7 @@ class JsonSchemaAssertionTraitTest extends MediaWikiUnitTestCase { $dir = __DIR__ . '/json'; // T391586 - Malformed JSON doesn't pass linting while making releases, so // to have a txt file extension. - foreach ( glob( __DIR__ . '/json/invalid*.{txt,json}' ) as $file ) { + foreach ( glob( __DIR__ . '/json/invalid*.{txt,json}', GLOB_BRACE ) as $file ) { yield $file => [ $file, "$dir/schema1.json" ]; } }