mediawiki-skins-Vector/tests/phpunit/structure/BundleSizeTest.php

20 lines
546 B
PHP
Raw Normal View History

<?php
namespace MediaWiki\Skins\Vector\Tests\Structure;
class BundleSizeTest extends \MediaWiki\Tests\Structure\BundleSizeTestBase {
/** @inheritDoc */
public function getBundleSizeConfig(): string {
return dirname( __DIR__, 3 ) . '/bundlesize.config.json';
}
/** @inheritDoc */
public function provideBundleSize() {
$bundleSizeConfig = json_decode( file_get_contents( $this->getBundleSizeConfig() ), true );
foreach ( $bundleSizeConfig[ 'modules' ] as $testCase ) {
yield $testCase['resourceModule'] => [ $testCase ];
}
}
}