Skip to content

Commit

Permalink
Fix testVariadicConstructor and testVariadicCallable in `Containe…
Browse files Browse the repository at this point in the history
…rTest.php`.
  • Loading branch information
terabytesoftw committed Mar 21, 2024
1 parent e7f233c commit 4b12816
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/framework/di/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand All @@ -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
*/
Expand Down

0 comments on commit 4b12816

Please sign in to comment.