diff --git a/tests/ResourceServerTest.php b/tests/ResourceServerTest.php index 794cebb1..791e8a41 100644 --- a/tests/ResourceServerTest.php +++ b/tests/ResourceServerTest.php @@ -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()