diff --git a/tests/authentication/server_test.php b/tests/authentication/server_test.php index 87842d03..211c03a1 100644 --- a/tests/authentication/server_test.php +++ b/tests/authentication/server_test.php @@ -5,9 +5,10 @@ class Authentication_Server_test extends PHPUnit_Framework_TestCase { function setUp() { $this->oauth = new Oauth2\Authentication\Server(); - + require_once('database_mock.php'); $this->oauthdb = new OAuthdb(); + $this->assertInstanceOf('Oauth2\Authentication\Database', $this->oauthdb); $this->oauth->registerDbAbstractor($this->oauthdb); } diff --git a/tests/resource/server_test.php b/tests/resource/server_test.php index e66a05a6..456f686c 100644 --- a/tests/resource/server_test.php +++ b/tests/resource/server_test.php @@ -8,6 +8,7 @@ class Resource_Server_test extends PHPUnit_Framework_TestCase { $this->server = new Oauth2\Resource\Server(); $this->db = new ResourceDB(); + $this->assertInstanceOf('Oauth2\Resource\Database', $this->db); $this->server->registerDbAbstractor($this->db); }