/**
  * @expectedException \LogicException
  * @expectedExceptionMessage Missing activation date!
  */
 public function testNoActivationDateIsGiven()
 {
     $model = new PendingActivation();
     $model->isActivationExpired();
 }
 public function testIsNonExpiredRegistration()
 {
     $model = new PendingActivation(new \DateTime());
     $this->assertFalse($model->isActivationExpired());
 }