diff --git a/composer.json b/composer.json index 2d92556..b2e2dda 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ ], "require": { "php": ">=5.4", - "league/oauth2-client": "~0.3", + "league/oauth2-client": "0.4.*", "league/oauth1-client": "~1.0", "zendframework/zend-servicemanager": "~2.2" }, diff --git a/src/Model/Oauth2User.php b/src/Model/Oauth2User.php index 02d260b..5241ce5 100644 --- a/src/Model/Oauth2User.php +++ b/src/Model/Oauth2User.php @@ -1,7 +1,7 @@ getMock('League\OAuth2\Client\Provider\IdentityProvider'); + $plugin = $this->getMock('League\OAuth2\Client\Provider\ProviderInterface'); $this->assertNull($oauth2ClientManager->validatePlugin($plugin)); $this->setExpectedException('HtLeagueOauthClientModule\Exception\InvalidArgumentException');