Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $this->randomGenerator = new FallbackRandomGenerator(null, new OpenSslRandomGenerator());
     $factory = new DefaultContextFactory($this->randomGenerator);
     $this->context = $factory->get();
 }
Exemplo n.º 2
0
 /**
  * @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));
 }