From 8fbbc7bd072761587ff7621e667aaf9c2e9ef12b Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 2 May 2014 15:15:03 +0100 Subject: [PATCH] isValidRequest now throws exception --- tests/ResourceServerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()