Browse Source

exclude test with invalid PHP code from HHVM

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
614ac19c5c
  1. 4
      tests/unit/framework/rbac/ManagerTestCase.php

4
tests/unit/framework/rbac/ManagerTestCase.php

@ -173,7 +173,9 @@ 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));
$this->assertFalse($this->auth->executeBizRule('invalid;', [], null));
if (defined('HHVM_VERSION')) { // invalid code crashes on HHVM
$this->assertFalse($this->auth->executeBizRule('invalid;', [], null));
}
}
public function testCheckAccess()

Loading…
Cancel
Save