mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
fixed condition for HHVM test
This commit is contained in:
@@ -173,7 +173,7 @@ abstract class ManagerTestCase extends TestCase
|
||||
$this->assertTrue($this->auth->executeBizRule(null, [], null));
|
||||
$this->assertTrue($this->auth->executeBizRule('return 1 == true;', [], null));
|
||||
$this->assertTrue($this->auth->executeBizRule('return $params[0] == $params[1];', [1, '1'], null));
|
||||
if (defined('HHVM_VERSION')) { // invalid code crashes on HHVM
|
||||
if (!defined('HHVM_VERSION')) { // invalid code crashes on HHVM
|
||||
$this->assertFalse($this->auth->executeBizRule('invalid;', [], null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user