mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 01:36:02 +05:30
Autoload dependencies with autoloader in bootstrap.php
This commit is contained in:
parent
b10613c5e3
commit
5f1779c4e7
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit colors="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false">
|
||||
<phpunit colors="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" bootstrap="../tests/Bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="Authentication Server">
|
||||
<directory suffix="test.php">../tests/authentication</directory>
|
||||
|
6
tests/Bootstrap.php
Normal file
6
tests/Bootstrap.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
if ( ! @include_once __DIR__ . '/../vendor/autoload.php')
|
||||
{
|
||||
exit("You must set up the project dependencies, run the following commands:\n> wget http://getcomposer.org/composer.phar\n> php composer.phar install\n");
|
||||
}
|
@ -1,8 +1,5 @@
|
||||
<?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()
|
||||
|
@ -1,8 +1,5 @@
|
||||
<?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()
|
||||
|
Loading…
Reference in New Issue
Block a user