コード例 #1
0
ファイル: AbstractTestBase.php プロジェクト: tmilos/jose-jwt
 protected function setUp()
 {
     parent::setUp();
     $this->randomGenerator = new FallbackRandomGenerator(null, new OpenSslRandomGenerator());
     $factory = new DefaultContextFactory($this->randomGenerator);
     $this->context = $factory->get();
 }
コード例 #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));
 }