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 "Follow-up 7960d53: Mark when the SecondaryDataUpdates and WikiPageDeletionUpda...
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
HamcrestPHPUnitIntegration.php
diff --git
a/tests/phpunit/HamcrestPHPUnitIntegration.php
b/tests/phpunit/HamcrestPHPUnitIntegration.php
index
def08ff
..
aa383e2
100644
(file)
--- a/
tests/phpunit/HamcrestPHPUnitIntegration.php
+++ b/
tests/phpunit/HamcrestPHPUnitIntegration.php
@@
-27,8
+27,8
@@
trait HamcrestPHPUnitIntegration {
* Wrapper around Hamcrest's assertThat, which marks the assertion
* for PHPUnit so the test is not marked as risky
*/
* Wrapper around Hamcrest's assertThat, which marks the assertion
* for PHPUnit so the test is not marked as risky
*/
- public function assertThatHamcrest(
/* ... */
) {
-
call_user_func_array( 'assertThat', func_get_args()
);
+ public function assertThatHamcrest(
...$args
) {
+
assertThat( ...$args
);
$this->addToAssertionCount( 1 );
}
}
$this->addToAssertionCount( 1 );
}
}