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); }