Index: trunk/phase3/maintenance/tests/phpunit |
— | — | @@ -32,6 +32,7 @@ |
33 | 33 | } else { |
34 | 34 | require( dirname( __FILE__ ) . '/TestFileList.php' ); |
35 | 35 | $files = $testFiles; |
| 36 | + wfRunHooks( 'UnitTestsList', array( &$files ) ); |
36 | 37 | } |
37 | 38 | foreach ( $files as $file ) { |
38 | 39 | $suite->addTestFile( $file ); |
Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1595,6 +1595,9 @@ |
1596 | 1596 | $action: action name |
1597 | 1597 | $article: article "acted on" |
1598 | 1598 | |
| 1599 | +'UnitTestsList': Called when building a list of files with PHPUnit tests |
| 1600 | +&$files: list of files |
| 1601 | + |
1599 | 1602 | 'UnwatchArticle': before a watch is removed from an article |
1600 | 1603 | $user: user watching |
1601 | 1604 | $article: article object to be removed |