Commit 614ac19c by Carsten Brandt

exclude test with invalid PHP code from HHVM

parent 77fec9c2
...@@ -173,8 +173,10 @@ abstract class ManagerTestCase extends TestCase ...@@ -173,8 +173,10 @@ abstract class ManagerTestCase extends TestCase
$this->assertTrue($this->auth->executeBizRule(null, [], null)); $this->assertTrue($this->auth->executeBizRule(null, [], null));
$this->assertTrue($this->auth->executeBizRule('return 1 == true;', [], null)); $this->assertTrue($this->auth->executeBizRule('return 1 == true;', [], null));
$this->assertTrue($this->auth->executeBizRule('return $params[0] == $params[1];', [1, '1'], null)); $this->assertTrue($this->auth->executeBizRule('return $params[0] == $params[1];', [1, '1'], null));
if (defined('HHVM_VERSION')) { // invalid code crashes on HHVM
$this->assertFalse($this->auth->executeBizRule('invalid;', [], null)); $this->assertFalse($this->auth->executeBizRule('invalid;', [], null));
} }
}
public function testCheckAccess() public function testCheckAccess()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment