Some initial grant testing

This commit is contained in:
Alex Bilbie
2014-01-17 10:36:57 +00:00
parent 40ea409aed
commit 20df1f50a6
4 changed files with 376 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace LeagueTests\Stubs;
class StubAbstractGrant extends \League\OAuth2\Server\Grant\AbstractGrant
{
protected $responseType = 'foobar';
public function completeFlow()
{
return true;
}
public function getAccessTokenTTL()
{
return $this->accessTokenTTL;
}
public function getAuthorizationServer()
{
return $this->server;
}
}