Index: trunk/phase3/tests/phpunit/suite.xml |
— | — | @@ -12,19 +12,19 @@ |
13 | 13 | verbose="true"> |
14 | 14 | <testsuites> |
15 | 15 | <testsuite name="includes"> |
16 | | - <directory>./includes</directory> |
| 16 | + <directory>includes</directory> |
17 | 17 | </testsuite> |
18 | 18 | <testsuite name="languages"> |
19 | | - <directory>./languages</directory> |
| 19 | + <directory>languages</directory> |
20 | 20 | </testsuite> |
21 | 21 | <testsuite name="skins"> |
22 | | - <directory>./skins</directory> |
| 22 | + <directory>skins</directory> |
23 | 23 | </testsuite> |
24 | 24 | <testsuite name="uploadfromurl"> |
25 | | - <file>./suites/UploadFromUrlTestSuite.php</file> |
| 25 | + <file>suites/UploadFromUrlTestSuite.php</file> |
26 | 26 | </testsuite> |
27 | 27 | <testsuite name="extensions"> |
28 | | - <file>./suites/ExtensionsTestSuite.php</file> |
| 28 | + <file>suites/ExtensionsTestSuite.php</file> |
29 | 29 | </testsuite> |
30 | 30 | </testsuites> |
31 | 31 | <groups> |
Index: trunk/phase3/tests/phpunit/MediaWikiPHPUnitCommand.php |
— | — | @@ -28,6 +28,17 @@ |
29 | 29 | # Probably fix bug 29226 |
30 | 30 | $command->arguments['colors'] = false; |
31 | 31 | } |
| 32 | + |
| 33 | + # Makes MediaWiki PHPUnit directory includable so the PHPUnit will |
| 34 | + # be able to resolve relative files inclusion such as suites/* |
| 35 | + # PHPUnit uses stream_resolve_include_path() internally |
| 36 | + # See bug 32022 |
| 37 | + set_include_path( |
| 38 | + dirname( __FILE__ ) |
| 39 | + .PATH_SEPARATOR |
| 40 | + . get_include_path() |
| 41 | + ); |
| 42 | + |
32 | 43 | $command->run($_SERVER['argv'], $exit); |
33 | 44 | } |
34 | 45 | |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -123,6 +123,7 @@ |
124 | 124 | * (bug 19186) Special:UserLogin's title on Special:SpecialPages now says |
125 | 125 | "create account" when the user cannot create an account |
126 | 126 | * (bug 31818) 'usercreated' message now supports GENDER |
| 127 | +* (bug 32022) Our phpunit.php script can now be executed from another directory |
127 | 128 | |
128 | 129 | === API changes in 1.19 === |
129 | 130 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |