isActive() public méthode

Returns FALSE if the account has expired.
public isActive ( ) : boolean
Résultat boolean
 /**
  * @test
  */
 public function isActiveReturnsFalseIfTheAccountHasAnExpirationDateInThePast()
 {
     $this->inject($this->account, 'now', new \DateTime());
     $this->account->setExpirationDate(new \DateTime('yesterday'));
     $this->assertFalse($this->account->isActive());
 }