X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FHamcrestPHPUnitIntegration.php;h=aa383e204ce59f9935af34f0ab11bcff0d1ebb84;hb=5a6be9f2599aa16ce2107ab1da64cc0f94fc5d13;hp=def08ff370122df8b8284fee61fb400ffc539c9a;hpb=e929c716317eae338196d7f35a98550de769b224;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/HamcrestPHPUnitIntegration.php b/tests/phpunit/HamcrestPHPUnitIntegration.php index def08ff370..aa383e204c 100644 --- 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 */ - public function assertThatHamcrest( /* ... */ ) { - call_user_func_array( 'assertThat', func_get_args() ); + public function assertThatHamcrest( ...$args ) { + assertThat( ...$args ); $this->addToAssertionCount( 1 ); } }