/** * @dataProvider rsa_provider */ public function test_rsa_crypt_decrypt($algorithm, $encryption) { $token = Jwe::encode($this->context, $this->payload, $this->getRsaPublicKey(), $algorithm, $encryption, $this->extraHeader); $payload = Jwe::decode($this->context, $token, $this->getRsaPrivateKey()); $payload = json_decode($payload, true); $this->assertEquals($this->payload, $payload); }