Exemplo n.º 1
0
 public function testCSRFTokens()
 {
     $token = new Token($this->container);
     $t1 = $token->getCSRFToken();
     $this->assertNotEmpty($t1);
     $this->assertTrue($token->validateCSRFToken($t1));
     $this->assertFalse($token->validateCSRFToken($t1));
 }