evaluate() public method

Evaluates this condition.
public evaluate ( mixed $value ) : boolean
$value mixed
return boolean true when the condition holds, false otherwise.
コード例 #1
0
 public function testVariables3()
 {
     $condition = new ezcWorkflowConditionVariables('foo', 'bar', new ezcWorkflowConditionIsEqual());
     $this->assertFalse($condition->evaluate(array()));
 }
コード例 #2
0
 public function testVariables5()
 {
     $condition = new ezcWorkflowConditionVariables('foo', 'bar', new ezcWorkflowConditionIsGreaterThan());
     $this->assertTrue($condition->evaluate(array('foo' => 8, 'bar' => 5)), 'Failed condition: ' . $condition);
 }