public function testClear()
 {
     $this->fixtureTokens([['invalidate_date' => $this->toDate('-1 minute')], ['invalidate_date' => $this->toDate('-1 second')], ['invalidate_date' => $this->toDate('+1 minute')]]);
     $this->tokenRepository->cleanup();
     for ($i = 1; $i < 2; $i++) {
         try {
             $this->tokenRepository->get($i);
             $this->fail("{$i} must be cleared");
         } catch (NotFoundException $e) {
         }
     }
     $result = $this->tokenRepository->get(3);
     $this->assertTrue($result instanceof Token);
 }
 protected function action()
 {
     $this->tokenRepository->cleanup();
 }