mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +05:30
Moved require_once statement outside of setUp tests method
This commit is contained in:
parent
1142f8d86b
commit
e99211db31
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once 'src/OAuth2/Authentication/Server.php';
|
||||
require_once 'src/OAuth2/Authentication/Database.php';
|
||||
|
||||
class Authentication_Server_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
require_once 'src/OAuth2/Authentication/Server.php';
|
||||
require_once 'src/OAuth2/Authentication/Database.php';
|
||||
|
||||
$this->oauth = new Oauth2\Authentication\Server();
|
||||
|
||||
require_once 'database_mock.php';
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once 'src/OAuth2/Resource/Server.php';
|
||||
require_once 'src/OAuth2/Resource/Database.php';
|
||||
|
||||
class Resource_Server_test extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function setUp()
|
||||
{
|
||||
require_once 'src/OAuth2/Resource/Server.php';
|
||||
require_once 'src/OAuth2/Resource/Database.php';
|
||||
|
||||
require_once('database_mock.php');
|
||||
$this->server = new Oauth2\Resource\Server();
|
||||
$this->db = new ResourceDB();
|
||||
|
Loading…
Reference in New Issue
Block a user