From a1ab4b2c6ca8741553639fc50400eb32d90d3109 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 26 Feb 2019 18:52:03 -0800 Subject: [PATCH] Use splat operator in HamcrestPHPUnitIntegration Change-Id: I1421748fd338137dd6990775e0d79a6cfb82aa9d --- tests/phpunit/HamcrestPHPUnitIntegration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } } -- 2.20.1