From f40ada9ac7318b48042875e5d8cef6ea46c70a2b Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 22 Jul 2014 09:23:00 +0100 Subject: [PATCH] Moved unit tests --- composer.json | 2 +- phpunit.xml | 4 ++-- tests/{ => unit}/AbstractServerTest.php | 0 tests/{ => unit}/AuthorizationServerTest.php | 0 tests/{ => unit}/Bootstrap.php | 2 +- tests/{ => unit}/Entity/AbstractTokenEntityTest.php | 0 tests/{ => unit}/Entity/AccessTokenEntityTest.php | 0 tests/{ => unit}/Entity/AuthCodeEntityTest.php | 0 tests/{ => unit}/Entity/ClientEntityTest.php | 0 tests/{ => unit}/Entity/RefreshTokenEntityTest.php | 0 tests/{ => unit}/Entity/ScopeEntityTest.php | 0 tests/{ => unit}/Entity/SessionEntityTest.php | 0 tests/{ => unit}/Exception/OAuthExceptionTest.php | 0 tests/{ => unit}/Grant/AbstractGrantTest.php | 0 tests/{ => unit}/Grant/AuthCodeGrantTest.php | 0 tests/{ => unit}/Grant/ClientCredentialsGrantTest.php | 0 tests/{ => unit}/Grant/PasswordGrantTest.php | 0 tests/{ => unit}/Grant/RefreshTokenGrantTest.php | 0 tests/{ => unit}/ResourceServerTest.php | 0 tests/{ => unit}/Storage/AdapterTest.php | 0 tests/{ => unit}/Stubs/StubAbstractGrant.php | 0 tests/{ => unit}/Stubs/StubAbstractServer.php | 0 tests/{ => unit}/Stubs/StubAbstractTokenEntity.php | 0 tests/{ => unit}/util/RedirectUriTest.php | 0 tests/{ => unit}/util/SecureKeyTest.php | 0 25 files changed, 4 insertions(+), 4 deletions(-) rename tests/{ => unit}/AbstractServerTest.php (100%) rename tests/{ => unit}/AuthorizationServerTest.php (100%) rename tests/{ => unit}/Bootstrap.php (73%) rename tests/{ => unit}/Entity/AbstractTokenEntityTest.php (100%) rename tests/{ => unit}/Entity/AccessTokenEntityTest.php (100%) rename tests/{ => unit}/Entity/AuthCodeEntityTest.php (100%) rename tests/{ => unit}/Entity/ClientEntityTest.php (100%) rename tests/{ => unit}/Entity/RefreshTokenEntityTest.php (100%) rename tests/{ => unit}/Entity/ScopeEntityTest.php (100%) rename tests/{ => unit}/Entity/SessionEntityTest.php (100%) rename tests/{ => unit}/Exception/OAuthExceptionTest.php (100%) rename tests/{ => unit}/Grant/AbstractGrantTest.php (100%) rename tests/{ => unit}/Grant/AuthCodeGrantTest.php (100%) rename tests/{ => unit}/Grant/ClientCredentialsGrantTest.php (100%) rename tests/{ => unit}/Grant/PasswordGrantTest.php (100%) rename tests/{ => unit}/Grant/RefreshTokenGrantTest.php (100%) rename tests/{ => unit}/ResourceServerTest.php (100%) rename tests/{ => unit}/Storage/AdapterTest.php (100%) rename tests/{ => unit}/Stubs/StubAbstractGrant.php (100%) rename tests/{ => unit}/Stubs/StubAbstractServer.php (100%) rename tests/{ => unit}/Stubs/StubAbstractTokenEntity.php (100%) rename tests/{ => unit}/util/RedirectUriTest.php (100%) rename tests/{ => unit}/util/SecureKeyTest.php (100%) diff --git a/composer.json b/composer.json index aff71b87..d4be2a1d 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "autoload-dev": { "psr-4": { - "LeagueTests\\": "tests/" + "LeagueTests\\": "tests/unit/" } }, "extra": { diff --git a/phpunit.xml b/phpunit.xml index 75670ca4..f78850c1 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,8 +1,8 @@ - + - ./tests/ + ./tests/unit/ diff --git a/tests/AbstractServerTest.php b/tests/unit/AbstractServerTest.php similarity index 100% rename from tests/AbstractServerTest.php rename to tests/unit/AbstractServerTest.php diff --git a/tests/AuthorizationServerTest.php b/tests/unit/AuthorizationServerTest.php similarity index 100% rename from tests/AuthorizationServerTest.php rename to tests/unit/AuthorizationServerTest.php diff --git a/tests/Bootstrap.php b/tests/unit/Bootstrap.php similarity index 73% rename from tests/Bootstrap.php rename to tests/unit/Bootstrap.php index 7f8cf458..e6d3d782 100644 --- a/tests/Bootstrap.php +++ b/tests/unit/Bootstrap.php @@ -1,5 +1,5 @@ wget http://getcomposer.org/composer.phar\n> php composer.phar install\n"); } diff --git a/tests/Entity/AbstractTokenEntityTest.php b/tests/unit/Entity/AbstractTokenEntityTest.php similarity index 100% rename from tests/Entity/AbstractTokenEntityTest.php rename to tests/unit/Entity/AbstractTokenEntityTest.php diff --git a/tests/Entity/AccessTokenEntityTest.php b/tests/unit/Entity/AccessTokenEntityTest.php similarity index 100% rename from tests/Entity/AccessTokenEntityTest.php rename to tests/unit/Entity/AccessTokenEntityTest.php diff --git a/tests/Entity/AuthCodeEntityTest.php b/tests/unit/Entity/AuthCodeEntityTest.php similarity index 100% rename from tests/Entity/AuthCodeEntityTest.php rename to tests/unit/Entity/AuthCodeEntityTest.php diff --git a/tests/Entity/ClientEntityTest.php b/tests/unit/Entity/ClientEntityTest.php similarity index 100% rename from tests/Entity/ClientEntityTest.php rename to tests/unit/Entity/ClientEntityTest.php diff --git a/tests/Entity/RefreshTokenEntityTest.php b/tests/unit/Entity/RefreshTokenEntityTest.php similarity index 100% rename from tests/Entity/RefreshTokenEntityTest.php rename to tests/unit/Entity/RefreshTokenEntityTest.php diff --git a/tests/Entity/ScopeEntityTest.php b/tests/unit/Entity/ScopeEntityTest.php similarity index 100% rename from tests/Entity/ScopeEntityTest.php rename to tests/unit/Entity/ScopeEntityTest.php diff --git a/tests/Entity/SessionEntityTest.php b/tests/unit/Entity/SessionEntityTest.php similarity index 100% rename from tests/Entity/SessionEntityTest.php rename to tests/unit/Entity/SessionEntityTest.php diff --git a/tests/Exception/OAuthExceptionTest.php b/tests/unit/Exception/OAuthExceptionTest.php similarity index 100% rename from tests/Exception/OAuthExceptionTest.php rename to tests/unit/Exception/OAuthExceptionTest.php diff --git a/tests/Grant/AbstractGrantTest.php b/tests/unit/Grant/AbstractGrantTest.php similarity index 100% rename from tests/Grant/AbstractGrantTest.php rename to tests/unit/Grant/AbstractGrantTest.php diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/unit/Grant/AuthCodeGrantTest.php similarity index 100% rename from tests/Grant/AuthCodeGrantTest.php rename to tests/unit/Grant/AuthCodeGrantTest.php diff --git a/tests/Grant/ClientCredentialsGrantTest.php b/tests/unit/Grant/ClientCredentialsGrantTest.php similarity index 100% rename from tests/Grant/ClientCredentialsGrantTest.php rename to tests/unit/Grant/ClientCredentialsGrantTest.php diff --git a/tests/Grant/PasswordGrantTest.php b/tests/unit/Grant/PasswordGrantTest.php similarity index 100% rename from tests/Grant/PasswordGrantTest.php rename to tests/unit/Grant/PasswordGrantTest.php diff --git a/tests/Grant/RefreshTokenGrantTest.php b/tests/unit/Grant/RefreshTokenGrantTest.php similarity index 100% rename from tests/Grant/RefreshTokenGrantTest.php rename to tests/unit/Grant/RefreshTokenGrantTest.php diff --git a/tests/ResourceServerTest.php b/tests/unit/ResourceServerTest.php similarity index 100% rename from tests/ResourceServerTest.php rename to tests/unit/ResourceServerTest.php diff --git a/tests/Storage/AdapterTest.php b/tests/unit/Storage/AdapterTest.php similarity index 100% rename from tests/Storage/AdapterTest.php rename to tests/unit/Storage/AdapterTest.php diff --git a/tests/Stubs/StubAbstractGrant.php b/tests/unit/Stubs/StubAbstractGrant.php similarity index 100% rename from tests/Stubs/StubAbstractGrant.php rename to tests/unit/Stubs/StubAbstractGrant.php diff --git a/tests/Stubs/StubAbstractServer.php b/tests/unit/Stubs/StubAbstractServer.php similarity index 100% rename from tests/Stubs/StubAbstractServer.php rename to tests/unit/Stubs/StubAbstractServer.php diff --git a/tests/Stubs/StubAbstractTokenEntity.php b/tests/unit/Stubs/StubAbstractTokenEntity.php similarity index 100% rename from tests/Stubs/StubAbstractTokenEntity.php rename to tests/unit/Stubs/StubAbstractTokenEntity.php diff --git a/tests/util/RedirectUriTest.php b/tests/unit/util/RedirectUriTest.php similarity index 100% rename from tests/util/RedirectUriTest.php rename to tests/unit/util/RedirectUriTest.php diff --git a/tests/util/SecureKeyTest.php b/tests/unit/util/SecureKeyTest.php similarity index 100% rename from tests/util/SecureKeyTest.php rename to tests/unit/util/SecureKeyTest.php