MediaWiki  master
AutoLoaderStructureTest Class Reference
Inheritance diagram for AutoLoaderStructureTest:
Collaboration diagram for AutoLoaderStructureTest:

Public Member Functions

 providePSR4Completeness ()
 
 testAutoLoadConfig ()
 Assert that there were no classes loaded that are not registered with the AutoLoader. More...
 
 testAutoloadOrder ()
 
 testPSR4Completeness ( $prefix, $dir, $file)
 providePSR4Completeness More...
 

Static Protected Member Functions

static checkAutoLoadConf ()
 

Private Member Functions

 recurseFiles ( $dir)
 

Static Private Member Functions

static parseFile ( $contents)
 

Detailed Description

Definition at line 3 of file AutoLoaderStructureTest.php.

Member Function Documentation

◆ checkAutoLoadConf()

static AutoLoaderStructureTest::checkAutoLoadConf ( )
staticprotected

◆ parseFile()

static AutoLoaderStructureTest::parseFile (   $contents)
staticprivate

Definition at line 76 of file AutoLoaderStructureTest.php.

References $matches, and as.

◆ providePSR4Completeness()

AutoLoaderStructureTest::providePSR4Completeness ( )

Definition at line 19 of file AutoLoaderStructureTest.php.

References $file, AutoLoader\$psr4Namespaces, as, and recurseFiles().

◆ recurseFiles()

AutoLoaderStructureTest::recurseFiles (   $dir)
private

Definition at line 27 of file AutoLoaderStructureTest.php.

Referenced by providePSR4Completeness().

◆ testAutoLoadConfig()

AutoLoaderStructureTest::testAutoLoadConfig ( )

Assert that there were no classes loaded that are not registered with the AutoLoader.

For example foo.php having class Foo and class Bar but only registering Foo. This is important because we should not be relying on Foo being used before Bar.

Definition at line 10 of file AutoLoaderStructureTest.php.

◆ testAutoloadOrder()

AutoLoaderStructureTest::testAutoloadOrder ( )

◆ testPSR4Completeness()

AutoLoaderStructureTest::testPSR4Completeness (   $prefix,
  $dir,
  $file 
)

providePSR4Completeness

Definition at line 34 of file AutoLoaderStructureTest.php.

References $file, $wgAutoloadClasses, $wgAutoloadLocalClasses, as, and list.


The documentation for this class was generated from the following file: