Skip to content

Commit

Permalink
Skip testing variadics on HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 30, 2017
1 parent 34d2223 commit f82f2c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/framework/di/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
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;

/**
Expand Down Expand Up @@ -292,6 +291,10 @@ public function testContainerSingletons()
*/
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');
}
Expand All @@ -301,6 +304,10 @@ public function testVariadicConstructor()
*/
public function testVariadicCallable()
{
if (defined('HHVM_VERSION')) {
static::markTestSkipped('Can not test on HHVM because it does not support variadics.');
}

require __DIR__ . '/testContainerWithVariadicCallable.php';
}
}

0 comments on commit f82f2c0

Please sign in to comment.