Index: trunk/phase3/tests/phpunit/includes/parser/MediaWikiParserTest.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | */ |
26 | 26 | $className = str_replace( '.', '_', ucfirst( basename( $filename, '.txt' ) ) ); |
27 | 27 | |
28 | | - eval( "/** @group Database\n@group Parser\n*/ class $className extends NewParserTest { protected \$file = \"" . addslashes( $filename ) . "\"; } " ); |
| 28 | + eval( "/** @group Database\n@group Parser\n*/ class $className extends NewParserTest { protected \$file = '" . strtr( $filename, array( "'" => "\\'", '\\' => '\\\\' ) ) . "'; } " ); |
29 | 29 | |
30 | 30 | $parserTester = new $className( $testsName ); |
31 | 31 | $suite->addTestSuite( new ReflectionClass ( $parserTester ) ); |