mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 06:40:59 +08:00
Skip testing variadics on HHVM
This commit is contained in:
@ -18,7 +18,6 @@ use yiiunit\framework\di\stubs\Bar;
|
|||||||
use yiiunit\framework\di\stubs\Foo;
|
use yiiunit\framework\di\stubs\Foo;
|
||||||
use yiiunit\framework\di\stubs\Qux;
|
use yiiunit\framework\di\stubs\Qux;
|
||||||
use yiiunit\framework\di\stubs\QuxInterface;
|
use yiiunit\framework\di\stubs\QuxInterface;
|
||||||
use yiiunit\framework\di\stubs\Variadic;
|
|
||||||
use yiiunit\TestCase;
|
use yiiunit\TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -292,6 +291,10 @@ class ContainerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testVariadicConstructor()
|
public function testVariadicConstructor()
|
||||||
{
|
{
|
||||||
|
if (defined('HHVM_VERSION')) {
|
||||||
|
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
||||||
|
}
|
||||||
|
|
||||||
$container = new Container();
|
$container = new Container();
|
||||||
$container->get('yiiunit\framework\di\stubs\Variadic');
|
$container->get('yiiunit\framework\di\stubs\Variadic');
|
||||||
}
|
}
|
||||||
@ -301,6 +304,10 @@ class ContainerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testVariadicCallable()
|
public function testVariadicCallable()
|
||||||
{
|
{
|
||||||
|
if (defined('HHVM_VERSION')) {
|
||||||
|
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
||||||
|
}
|
||||||
|
|
||||||
require __DIR__ . '/testContainerWithVariadicCallable.php';
|
require __DIR__ . '/testContainerWithVariadicCallable.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user