protected function processSubscription(SubscriptionInterface $subscription) { $subscription->setProcessedDate(new \DateTime()); }
public function it_should_set_processed_date(SubscriptionRepositoryInterface $repository, SubscriptionInterface $subscription) { $repository->findScheduled()->willReturn(array($subscription)); $subscription->setProcessedDate(Argument::any())->shouldBeCalled(); $this->process(); }