mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Lots of fixes for tests following exceptions changes
This commit is contained in:
@ -5,7 +5,7 @@ namespace LeagueTests;
|
||||
use LeagueTests\Stubs\StubAbstractServer;
|
||||
use \Mockery as M;
|
||||
|
||||
class AbstractTokenTests extends \PHPUnit_Framework_TestCase
|
||||
class AbstractTokenTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
function testSetGet()
|
||||
{
|
||||
@ -19,7 +19,7 @@ class AbstractTokenTests extends \PHPUnit_Framework_TestCase
|
||||
|
||||
function testGetStorageException()
|
||||
{
|
||||
$this->setExpectedException('League\OAuth2\Server\Exception\ServerException');
|
||||
$this->setExpectedException('League\OAuth2\Server\Exception\ServerErrorException');
|
||||
$server = new StubAbstractServer();
|
||||
$server->getStorage('foobar');
|
||||
}
|
||||
|
Reference in New Issue
Block a user