Fixed test checks

Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
This commit is contained in:
Alex Bilbie 2012-09-19 19:34:05 +01:00
parent ed2cabc5b6
commit 9844613b2d

View File

@ -72,7 +72,7 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase {
} }
/** /**
* @expectedException \Oauth2\Resource\OAuthResourceServerException * @expectedException \Oauth2\Resource\ClientException
* @expectedExceptionMessage An access token was not presented with the request * @expectedExceptionMessage An access token was not presented with the request
*/ */
function test_init_missingToken() function test_init_missingToken()
@ -81,7 +81,7 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase {
} }
/** /**
* @expectedException \Oauth2\Resource\OAuthResourceServerException * @expectedException \Oauth2\Resource\ClientException
* @expectedExceptionMessage The access token is not registered with the resource server * @expectedExceptionMessage The access token is not registered with the resource server
*/ */
function test_init_wrongToken() function test_init_wrongToken()