MediaWiki master
MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestFileScanner Class Reference

Public Member Functions

 __construct (string $rootDir)
 
 scanForFiles ()
 

Detailed Description

Note
GPL-2.0-or-later

Definition at line 13 of file PhpUnitTestFileScanner.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestFileScanner::__construct ( string $rootDir)

Definition at line 17 of file PhpUnitTestFileScanner.php.

Member Function Documentation

◆ scanForFiles()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitTestFileScanner::scanForFiles ( )
Returns
array Returns an list of .php files found on the filesystem inside $rootDir. The array maps file basenames (i.e. MyClassTest.php) to lists of paths where that basename is found (e.g. ‘[ 'tests/phpunit/MyClassTest.php’, 'extensions/MyExtension/tests/phpunit/MyClassTest.php' ]`)

Definition at line 28 of file PhpUnitTestFileScanner.php.


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