Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $grantTypeFactory = new GrantTypeFactory();
     $grantTypeFactory->add(new TestImplicit());
     Environment::getContainer()->set('oauth2_grant_type_factory', $grantTypeFactory);
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     // key type OPENSSL_KEYTYPE_DH is not supported by hhvm
     if (getenv('TRAVIS_PHP_VERSION') == 'hhvm') {
         $this->markTestSkipped('Key type OPENSSL_KEYTYPE_DH is not supported by hhvm');
     }
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $grantTypeFactory = new GrantTypeFactory();
     $grantTypeFactory->add(new TestAuthorizationCode());
     $grantTypeFactory->add(new TestClientCredentials());
     $grantTypeFactory->add(new TestImplicit());
     $grantTypeFactory->add(new TestPassword());
     $grantTypeFactory->add(new TestRefreshToken());
     Environment::getContainer()->set('oauth2_grant_type_factory', $grantTypeFactory);
 }
Exemplo n.º 4
0
 protected function setUp()
 {
     parent::setUp();
     // use memory sender
     Environment::getContainer()->set('dispatch_sender', new Memory());
 }