Returns TRUE if this token is currently authenticated
public isAuthenticated ( ) : boolean | ||
Résultat | boolean | TRUE if this this token is currently authenticated |
/** * @test * @dataProvider authenticationStatusAndIsAuthenticated */ public function isAuthenticatedReturnsTheCorrectValueForAGivenStatus($status, $isAuthenticated) { $this->token->setAuthenticationStatus($status); $this->assertEquals($isAuthenticated, $this->token->isAuthenticated()); $this->token->setAuthenticationStatus($status); $this->assertEquals($isAuthenticated, $this->token->isAuthenticated()); $this->token->setAuthenticationStatus($status); $this->assertEquals($isAuthenticated, $this->token->isAuthenticated()); $this->token->setAuthenticationStatus($status); $this->assertEquals($isAuthenticated, $this->token->isAuthenticated()); }