isValidRequest now throws exception

This commit is contained in:
Alex Bilbie 2014-05-02 15:15:03 +01:00
parent 228144a701
commit 8fbbc7bd07

View File

@ -111,7 +111,8 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
$scopeStorage
);
$this->assertFalse($server->isValidRequest());
$this->setExpectedException('League\OAuth2\Server\Exception\InvalidRequestException');
$server->isValidRequest();
}
public function testIsValid()