function it_does_not_match_if_one_child_does_not(Condition $conditionA, Condition $conditionB, Workflow $workflow, EntityId $entityId) { $conditionA->match($workflow, $entityId, static::$entity)->willReturn(true); $conditionB->match($workflow, $entityId, static::$entity)->willReturn(false); $this->addCondition($conditionA); $this->addCondition($conditionB); $this->match($workflow, $entityId, static::$entity)->shouldReturn(false); }
function it_does_not_match_if_condition_does_not(Condition $condition, EntityId $entityId) { $condition->match($this, $entityId, static::$entity)->willReturn(false); $this->addCondition($condition); $this->match($entityId, static::$entity)->shouldReturn(false); }