Debian Codegraph @

extensions/MultimediaViewer/tests/phpunit/structure/BundleSizeTest.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Extension\MultimediaViewer\Tests;
4
5 class BundleSizeTest extends \MediaWiki\Tests\Structure\BundleSizeTestBase {
6
7 /** @inheritDoc */
8 public function getBundleSizeConfig(): string {
9 return dirname( __DIR__, 3 ) . '/bundlesize.config.json';
10 }
11
12 /** @inheritDoc */
13 public function provideBundleSize() {
14 $bundleSizeConfig = json_decode( file_get_contents( $this->getBundleSizeConfig() ), true );
15 foreach ( $bundleSizeConfig[ 'modules' ] as $testCase ) {
16 yield $testCase['resourceModule'] => [ $testCase ];
17 }
18 }
19 }