mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 10:08:08 +08:00
Fix testVariadicConstructor and testVariadicCallable in ContainerTest.php.
This commit is contained in:
@ -481,6 +481,8 @@ class ContainerTest extends TestCase
|
|||||||
|
|
||||||
public function testVariadicConstructor()
|
public function testVariadicConstructor()
|
||||||
{
|
{
|
||||||
|
$this->expectNotToPerformAssertions();
|
||||||
|
|
||||||
if (\defined('HHVM_VERSION')) {
|
if (\defined('HHVM_VERSION')) {
|
||||||
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
||||||
}
|
}
|
||||||
@ -491,13 +493,15 @@ class ContainerTest extends TestCase
|
|||||||
|
|
||||||
public function testVariadicCallable()
|
public function testVariadicCallable()
|
||||||
{
|
{
|
||||||
|
$this->expectNotToPerformAssertions();
|
||||||
|
|
||||||
if (\defined('HHVM_VERSION')) {
|
if (\defined('HHVM_VERSION')) {
|
||||||
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
||||||
}
|
}
|
||||||
|
|
||||||
require __DIR__ . '/testContainerWithVariadicCallable.php';
|
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