diff --git a/tests/phpunit/TemplateDataBlobTest.php b/tests/phpunit/TemplateDataBlobTest.php index 785de806..fb0c802b 100644 --- a/tests/phpunit/TemplateDataBlobTest.php +++ b/tests/phpunit/TemplateDataBlobTest.php @@ -693,11 +693,9 @@ class TemplateDataBlobTest extends MediaWikiIntegrationTestCase { ], ]; - $calls = []; foreach ( $cases as $case ) { - $calls[] = [ $case ]; + yield [ $case ]; } - return $calls; } private function getStatusText( Status $status ): string { @@ -1132,11 +1130,10 @@ class TemplateDataBlobTest extends MediaWikiIntegrationTestCase { 'msg' => 'Set label is not optional, choose first available key as final fallback' ], ]; - $calls = []; + foreach ( $cases as $case ) { - $calls[] = [ $case ]; + yield [ $case ]; } - return $calls; } /** @@ -1348,11 +1345,10 @@ class TemplateDataBlobTest extends MediaWikiIntegrationTestCase { 'msg' => 'Duplicate params in paramOrder' ], ]; - $calls = []; + foreach ( $cases as $case ) { - $calls[] = [ $case ]; + yield [ $case ]; } - return $calls; } /**