Example #1
0
 public function testRegisterAndChangeGrant()
 {
     \Mockery::namedMock('FooStrategy', 'Eva\\EvaOAuth\\OAuth2\\GrantStrategy\\GrantStrategyInterface');
     $this->client->registerGrantStrategy('foo', 'FooStrategy');
     $this->client->changeGrantStrategy('foo');
     $this->assertEquals('foo', $this->client->getGrantStrategyName());
     //$this->assertInstanceOf('Eva\EvaOAuth\OAuth2\GrantStrategy\GrantStrategyInterface', $this->client->getGrantStrategy());
 }