mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 14:50:56 +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\Qux;
|
||||
use yiiunit\framework\di\stubs\QuxInterface;
|
||||
use yiiunit\framework\di\stubs\Variadic;
|
||||
use yiiunit\TestCase;
|
||||
|
||||
/**
|
||||
@ -292,6 +291,10 @@ class ContainerTest extends TestCase
|
||||
*/
|
||||
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');
|
||||
}
|
||||
@ -301,6 +304,10 @@ class ContainerTest extends TestCase
|
||||
*/
|
||||
public function testVariadicCallable()
|
||||
{
|
||||
if (defined('HHVM_VERSION')) {
|
||||
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
|
||||
}
|
||||
|
||||
require __DIR__ . '/testContainerWithVariadicCallable.php';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user