for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nord\Lumen\OAuth2\Tests;
use League\OAuth2\Server\Entity\ClientEntity;
use League\OAuth2\Server\Entity\SessionEntity;
use League\OAuth2\Server\Storage\ClientInterface;
class MockClientStorage extends MockStorage implements ClientInterface
{
/**
* @inheritdoc
*/
public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null)
$entity = new ClientEntity($this->server);
$entity->hydrate([
'id' => 'test',
'name' => 'test',
]);
return $entity;
}
public function getBySession(SessionEntity $entity)