protected function setUp() { parent::setUp(); $this->randomGenerator = new FallbackRandomGenerator(null, new OpenSslRandomGenerator()); $factory = new DefaultContextFactory($this->randomGenerator); $this->context = $factory->get(); }
/** * @dataProvider jwe_encryption_provider */ public function test_provides_jwe_encryption($id) { $factory = new DefaultContextFactory(); $context = $factory->get(); $this->assertTrue($context->jweEncryptions()->has($id)); $this->assertInstanceOf('JoseJwt\\Jwe\\JweEncryption', $context->jweEncryptions()->get($id)); }