Index: trunk/phase3/tests/phpunit/includes/parser/MediaWikiParserTest.php |
— | — | @@ -18,7 +18,11 @@ |
19 | 19 | |
20 | 20 | foreach ( $wgParserTestFiles as $filename ) { |
21 | 21 | $testsName = basename( $filename, '.txt' ); |
22 | | - $className = /*ucfirst( basename( dirname( $filename ) ) ) .*/ ucfirst( basename( $filename, '.txt' ) ); |
| 22 | + /* This used to be ucfirst( basename( dirname( $filename ) ) ) |
| 23 | + * and then was ucfirst( basename( $filename, '.txt' ) |
| 24 | + * but that didn't work with names like foo.tests.txt |
| 25 | + */ |
| 26 | + $className = str_replace( '.', '_', ucfirst( basename( $filename, '.txt' ) ) ); |
23 | 27 | |
24 | 28 | eval( "/** @group Database\n@group Parser\n*/ class $className extends NewParserTest { protected \$file = \"" . addslashes( $filename ) . "\"; } " ); |
25 | 29 | |