Lots of fixes for tests following exceptions changes

This commit is contained in:
Alex Bilbie
2014-05-01 14:33:11 +01:00
parent 9f1f0cc3bc
commit 1183fe80c6
8 changed files with 47 additions and 111 deletions

View File

@ -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');
}