Exemplo n.º 1
0
 function testEncrypt()
 {
     $jwt = new JOSE_JWT(array('foo' => 'bar'));
     $jwe = $jwt->encrypt($this->rsa_keys['public']);
     $this->assertInstanceOf('JOSE_JWT', $jwt);
     $this->assertInstanceOf('JOSE_JWE', $jwe);
 }