mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Revert remove testVariadicConstructor(), testVariadicCallable() in ContainerTest.php.
This commit is contained in:
@ -479,6 +479,25 @@ class ContainerTest extends TestCase
|
|||||||
$this->assertSame($foo, $sameFoo);
|
$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
|
* @see https://github.com/yiisoft/yii2/issues/18245
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user