From 4b1281618a57a93d32ab5822502b7b06a45807a4 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Thu, 21 Mar 2024 09:43:20 -0300 Subject: [PATCH] Fix `testVariadicConstructor` and `testVariadicCallable` in `ContainerTest.php`. --- tests/framework/di/ContainerTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/framework/di/ContainerTest.php b/tests/framework/di/ContainerTest.php index ff2be8feaf6..b4c425b089f 100644 --- a/tests/framework/di/ContainerTest.php +++ b/tests/framework/di/ContainerTest.php @@ -481,6 +481,8 @@ public function testContainerSingletons() public function testVariadicConstructor() { + $this->expectNotToPerformAssertions(); + if (\defined('HHVM_VERSION')) { static::markTestSkipped('Can not test on HHVM because it does not support variadics.'); } @@ -491,13 +493,15 @@ public function testVariadicConstructor() public function testVariadicCallable() { + $this->expectNotToPerformAssertions(); + if (\defined('HHVM_VERSION')) { static::markTestSkipped('Can not test on HHVM because it does not support variadics.'); } require __DIR__ . '/testContainerWithVariadicCallable.php'; } - + /** * @see https://github.com/yiisoft/yii2/issues/18245 */