コード例 #1
0
 protected function processSubscription(SubscriptionInterface $subscription)
 {
     $subscription->setProcessedDate(new \DateTime());
 }
コード例 #2
0
 public function it_should_set_processed_date(SubscriptionRepositoryInterface $repository, SubscriptionInterface $subscription)
 {
     $repository->findScheduled()->willReturn(array($subscription));
     $subscription->setProcessedDate(Argument::any())->shouldBeCalled();
     $this->process();
 }