57 $token = TestingAccessWrapper::newFromObject(
new Token(
'sekret',
'salty',
false ) );
59 $test = $token->toStringAtTimestamp( time() - 10 );
60 $this->assertTrue( $token->match( $test ) );
61 $this->assertTrue( $token->match( $test, 12 ) );
62 $this->assertFalse( $token->match( $test, 8 ) );
64 $this->assertFalse( $token->match(
'ee2f7a2488dea9176c224cfb400d43be5644fdea-\\' ) );