dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean and repair many phpunit tests (+ fix implied configuration)
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
generateRandomImages.php
diff --git
a/tests/phpunit/includes/api/generateRandomImages.php
b/tests/phpunit/includes/api/generateRandomImages.php
index
b22eccd
..
ee34562
100644
(file)
--- a/
tests/phpunit/includes/api/generateRandomImages.php
+++ b/
tests/phpunit/includes/api/generateRandomImages.php
@@
-6,11
+6,11
@@
*/
// Evaluate the include path relative to this file
*/
// Evaluate the include path relative to this file
-$IP = dirname( dirname( dirname( dirname(
dirname( __FILE__ )
) ) ) );
+$IP = dirname( dirname( dirname( dirname(
__DIR__
) ) ) );
// Start up MediaWiki in command-line mode
require_once( "$IP/maintenance/Maintenance.php" );
// Start up MediaWiki in command-line mode
require_once( "$IP/maintenance/Maintenance.php" );
-require(
dirname( __FILE__ )
. "/RandomImageGenerator.php" );
+require(
__DIR__
. "/RandomImageGenerator.php" );
class GenerateRandomImages extends Maintenance {
class GenerateRandomImages extends Maintenance {