mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-12-02 20:23:15 +05:30
Renamed Adapter to AbstractStorage because it isn't actually an adapter
This commit is contained in:
1 parent
72e3ddad1e
commit
fbf1535db1
3 files changed
+17
-9
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace LeagueTests\Storage;
|
||||
|
||||
use LeagueTests\Stubs\StubAbstractStorage;
|
||||
use LeagueTests\Stubs\StubAbstractServer;
|
||||
|
||||
class AdapterStorageTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testSetGet()
|
||||
{
|
||||
$storage = new StubAbstractStorage;
|
||||
|
||||
$reflector = new \ReflectionClass($storage);
|
||||
$setMethod = $reflector->getMethod('setServer');
|
||||
$setMethod->setAccessible(true);
|
||||
$setMethod->invokeArgs($storage, [new StubAbstractServer]);
|
||||
$getMethod = $reflector->getMethod('getServer');
|
||||
$getMethod->setAccessible(true);
|
||||
|
||||
$this->assertTrue($getMethod->invoke($storage) instanceof StubAbstractServer);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user