From: Kunal Mehta Date: Wed, 27 Feb 2019 02:52:03 +0000 (-0800) Subject: Use splat operator in HamcrestPHPUnitIntegration X-Git-Tag: 1.34.0-rc.0~2706^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=a1ab4b2c6ca8741553639fc50400eb32d90d3109;p=lhc%2Fweb%2Fwiklou.git Use splat operator in HamcrestPHPUnitIntegration Change-Id: I1421748fd338137dd6990775e0d79a6cfb82aa9d --- 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 ); } }