use Symfony\Component\Security\Core\Exception\TokenNotFoundException;
class InMemoryTokenProviderTest extends TestCase
{ public function testCreateNewToken() { $provider =
new InMemoryTokenProvider();
$token =
new PersistentToken('foo', 'foo', 'foo', 'foo',
new \
DateTimeImmutable());
$provider->
createNewToken($token);
$this->
assertSame($provider->
loadTokenBySeries('foo'
),
$token);
} public function testLoadTokenBySeriesThrowsNotFoundException() { $this->
expectException(TokenNotFoundException::
class);
$provider =
new InMemoryTokenProvider();
$provider->
loadTokenBySeries('foo'
);
} public function testUpdateToken() {