Merge "Use splat operator in HamcrestPHPUnitIntegration"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 27 Feb 2019 19:10:08 +0000 (19:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 27 Feb 2019 19:10:08 +0000 (19:10 +0000)
tests/phpunit/HamcrestPHPUnitIntegration.php

index def08ff..aa383e2 100644 (file)
@@ -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 );
        }
 }