/** * @inheritdoc */ public function handle(DomainMessage $domainMessage) { if ($this->domainMessageSpecification->isSatisfiedBy($domainMessage)) { $this->publishWithAMQP($domainMessage); } else { $this->logger->warning('message was skipped by specification ' . get_class($this->domainMessageSpecification)); } }
private function expectSpecificationIsNotSatisfied() { $this->specification->expects($this->any())->method('isSatisfiedBy')->willReturn(false); }