Skip to content

Commit

Permalink
Revert remove testVariadicConstructor(), testVariadicCallable() i…
Browse files Browse the repository at this point in the history
…n `ContainerTest.php`.
  • Loading branch information
terabytesoftw committed Mar 21, 2024
1 parent 843368c commit e7f233c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/framework/di/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,25 @@ public function testContainerSingletons()
$this->assertSame($foo, $sameFoo);
}

public function testVariadicConstructor()
{
if (\defined('HHVM_VERSION')) {
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
}

$container = new Container();
$container->get('yiiunit\framework\di\stubs\Variadic');
}

public function testVariadicCallable()
{
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 e7f233c

Please sign in to comment.