protected function setUp() { parent::setUp(); $grantTypeFactory = new GrantTypeFactory(); $grantTypeFactory->add(new TestImplicit()); Environment::getContainer()->set('oauth2_grant_type_factory', $grantTypeFactory); }
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'); } }
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); }
protected function setUp() { parent::setUp(); // use memory sender Environment::getContainer()->set('dispatch_sender', new Memory()); }