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)
This commit is contained in:
Umherirrender 2025-05-21 20:55:24 +02:00 committed by Reedy
parent 8d337e97dc
commit f8a4269751

View file

@ -33,7 +33,7 @@ class JsonSchemaAssertionTraitTest extends MediaWikiUnitTestCase {
$dir = __DIR__ . '/json'; $dir = __DIR__ . '/json';
// T391586 - Malformed JSON doesn't pass linting while making releases, so // T391586 - Malformed JSON doesn't pass linting while making releases, so
// to have a txt file extension. // 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" ]; yield $file => [ $file, "$dir/schema1.json" ];
} }
} }