Change-Id: I1421748fd338137dd6990775e0d79a6cfb82aa9d
* 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 );
}
}