60 foreach ( $before as $key =>
$value ) {
62 if ( substr( $key, 0, 2 ) ==
'mw' ) {
71 'globals' => $globals,
76 'autoloaderPaths' => []
79 $class =
new ReflectionClass( ExtensionRegistry::class );
80 $method = $class->getMethod(
'exportExtractedData' );
81 $method->setAccessible(
true );
82 $method->invokeArgs( $registry, [ $info ] );
83 foreach ( $expected as $name =>
$value ) {
84 $this->assertArrayHasKey( $name,
$GLOBALS, $desc );
90 foreach ( $before as $key =>
$value ) {
91 if ( substr( $key, 0, 2 ) ==
'mw' ) {