Example #1
0
 public function testExpired()
 {
     $secret = 'tOpCekpet';
     $data = [1, 'foo' => 'bar'];
     $token = Pasta::encode($data, $secret, "-3 seconds");
     $this->assertNull(Pasta::decode($token, $secret));
 }
 function __construct()
 {
     parent::__construct(self::ID, self::DESCRIPCION);
 }