Moved require_once statement outside of setUp tests method

This commit is contained in:
Alex Bilbie 2013-01-02 20:13:02 +00:00
parent 1142f8d86b
commit e99211db31
2 changed files with 6 additions and 6 deletions

View File

@ -1,12 +1,12 @@
<?php <?php
require_once 'src/OAuth2/Authentication/Server.php';
require_once 'src/OAuth2/Authentication/Database.php';
class Authentication_Server_test extends PHPUnit_Framework_TestCase class Authentication_Server_test extends PHPUnit_Framework_TestCase
{ {
public function setUp() public function setUp()
{ {
require_once 'src/OAuth2/Authentication/Server.php';
require_once 'src/OAuth2/Authentication/Database.php';
$this->oauth = new Oauth2\Authentication\Server(); $this->oauth = new Oauth2\Authentication\Server();
require_once 'database_mock.php'; require_once 'database_mock.php';

View File

@ -1,12 +1,12 @@
<?php <?php
require_once 'src/OAuth2/Resource/Server.php';
require_once 'src/OAuth2/Resource/Database.php';
class Resource_Server_test extends PHPUnit_Framework_TestCase { class Resource_Server_test extends PHPUnit_Framework_TestCase {
function setUp() function setUp()
{ {
require_once 'src/OAuth2/Resource/Server.php';
require_once 'src/OAuth2/Resource/Database.php';
require_once('database_mock.php'); require_once('database_mock.php');
$this->server = new Oauth2\Resource\Server(); $this->server = new Oauth2\Resource\Server();
$this->db = new ResourceDB(); $this->db = new ResourceDB();