예제 #1
0
파일: JWT_Test.php 프로젝트: igtm/jose
 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);
 }