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
Merge "resourceloader: Rewrite the minify.php maintenance script"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
SamplingStatsdClientTest.php
diff --git
a/tests/phpunit/includes/libs/SamplingStatsdClientTest.php
b/tests/phpunit/includes/libs/SamplingStatsdClientTest.php
index
85b8c62
..
7bd1611
100644
(file)
--- a/
tests/phpunit/includes/libs/SamplingStatsdClientTest.php
+++ b/
tests/phpunit/includes/libs/SamplingStatsdClientTest.php
@@
-22,7
+22,11
@@
class SamplingStatsdClientTest extends PHPUnit\Framework\TestCase {
} else {
$sender->expects( $this->never() )->method( 'write' );
}
} else {
$sender->expects( $this->never() )->method( 'write' );
}
- mt_srand( $seed );
+ if ( defined( 'MT_RAND_PHP' ) ) {
+ mt_srand( $seed, MT_RAND_PHP );
+ } else {
+ mt_srand( $seed );
+ }
$client = new SamplingStatsdClient( $sender );
$client->send( $data, $sampleRate );
}
$client = new SamplingStatsdClient( $sender );
$client->send( $data, $sampleRate );
}