public function testVariables3() { $condition = new ezcWorkflowConditionVariables('foo', 'bar', new ezcWorkflowConditionIsEqual()); $this->assertFalse($condition->evaluate(array())); }
public function testVariables5() { $condition = new ezcWorkflowConditionVariables('foo', 'bar', new ezcWorkflowConditionIsGreaterThan()); $this->assertTrue($condition->evaluate(array('foo' => 8, 'bar' => 5)), 'Failed condition: ' . $condition); }