Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
upgraded to phpunit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
brainexe committed Feb 22, 2017
1 parent 0341aea commit ad8ed5e
Show file tree
Hide file tree
Showing 100 changed files with 180 additions and 231 deletions.
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Application/AppKernelTest.php
Expand Up @@ -10,7 +10,7 @@
use BrainExe\Core\Middleware\MiddlewareInterface;
use Exception;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
3 changes: 1 addition & 2 deletions Tests/BrainExe/Core/Application/ControllerResolverTest.php
Expand Up @@ -4,8 +4,7 @@

use BrainExe\Core\Application\ControllerResolver;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use Symfony\Component\DependencyInjection\Container;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ServiceLocator;
use Symfony\Component\HttpFoundation\Request;

Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Application/LocaleTest.php
Expand Up @@ -3,7 +3,7 @@
namespace Tests\BrainExe\Core\Application;

use BrainExe\Core\Application\Locale;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Application\Locale
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Application/RedisLockTest.php
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Application\RedisLock;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use BrainExe\Core\Redis\Predis;

/**
Expand Down
Expand Up @@ -3,7 +3,7 @@
namespace Tests\BrainExe\Core\Application;

use BrainExe\Core\Application\SerializedRouteCollection;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Routing\Route;

class SerializedRouteCollectionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Application/SessionHandlerTest.php
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Application\SessionHandler;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use BrainExe\Core\Redis\Predis;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Application/UrlMatcherTest.php
Expand Up @@ -3,7 +3,7 @@
namespace Tests\BrainExe\Core\Application;

use BrainExe\Core\Application\UrlMatcher;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;

/**
Expand Down
Expand Up @@ -4,7 +4,7 @@

use BrainExe\Core\Authentication\AuthenticationDataVO;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

class AuthenticationDataVOTest extends TestCase
{
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Authentication\Command\CreateToken;
use BrainExe\Core\Authentication\Token;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Authentication\Command\ListTokens;
use BrainExe\Core\Authentication\Token;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

Expand Down
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Authentication\Login;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Authentication\AnonymusUserVO;
use BrainExe\Core\Authentication\Controller\LogoutController;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
Expand Down
Expand Up @@ -7,7 +7,7 @@
use BrainExe\Core\Authentication\UserProvider;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;

/**
Expand Down
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Authentication\Register;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Authentication\Controller\SettingsController;
use BrainExe\Core\Authentication\Settings\Settings;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;

/**
Expand Down
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Authentication\Controller\TokenController;
use BrainExe\Core\Authentication\Token;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;

/**
Expand Down
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Authentication\UserProvider;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Request;

/**
Expand Down
Expand Up @@ -4,7 +4,7 @@

use BrainExe\Core\Authentication\AuthenticationDataVO;
use BrainExe\Core\Authentication\Event\AuthenticateUserEvent;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\Event\AuthenticateUserEvent
Expand Down
Expand Up @@ -4,7 +4,7 @@

use BrainExe\Core\Authentication\Event\DeleteUserEvent;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\Event\DeleteUserEvent
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/LoadUserTest.php
Expand Up @@ -8,7 +8,7 @@
use BrainExe\Core\Redis\Predis;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\LoadUser
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/LoginTest.php
Expand Up @@ -12,7 +12,7 @@
use BrainExe\Core\Authentication\UserVO;
use BrainExe\Core\EventDispatcher\EventDispatcher;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;

Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/PasswordHasherTest.php
Expand Up @@ -3,7 +3,7 @@
namespace Tests\BrainExe\Core\Authentication;

use BrainExe\Core\Authentication\PasswordHasher;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\PasswordHasher
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/RegisterTest.php
Expand Up @@ -8,7 +8,7 @@
use BrainExe\Core\Authentication\RegisterTokens;
use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;

Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/RegisterTokensTest.php
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Util\IdGenerator;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use BrainExe\Core\Redis\Predis;

/**
Expand Down
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\Redis\Predis;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\Settings\Gateway
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Authentication\Settings\Gateway;
use BrainExe\Core\Authentication\Settings\Settings;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\Settings\Settings
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/TokenTest.php
Expand Up @@ -7,7 +7,7 @@
use BrainExe\Core\Util\IdGenerator;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\Token
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/UserProviderTest.php
Expand Up @@ -12,7 +12,7 @@
use BrainExe\Core\Util\IdGenerator;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\UserProvider
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Authentication/UserVOTest.php
Expand Up @@ -3,7 +3,7 @@
namespace Tests\BrainExe\Core\Authentication;

use BrainExe\Core\Authentication\UserVO;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

/**
* @covers \BrainExe\Core\Authentication\UserVO
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Console/ClearCacheCommandTest.php
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\DependencyInjection\Rebuild;
use BrainExe\Core\EventDispatcher\EventDispatcher;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Console/ClearSessionsCommandTest.php
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Console\ClearSessionsCommand;
use BrainExe\Tests\RedisMockTrait;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Redis;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
Expand Down
4 changes: 2 additions & 2 deletions Tests/BrainExe/Core/Console/CreateRegisterLinkCommandTest.php
Expand Up @@ -4,15 +4,15 @@

use BrainExe\Core\Authentication\RegisterTokens;
use BrainExe\Core\Console\CreateRegisterLinkCommand;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

/**
* @covers \BrainExe\Core\Console\CreateRegisterLinkCommand
*/
class CreateRegisterLinkCommandTest extends PHPUnit_Framework_TestCase
class CreateRegisterLinkCommandTest extends TestCase
{

/**
Expand Down
4 changes: 2 additions & 2 deletions Tests/BrainExe/Core/Console/CreateUserCommandTest.php
Expand Up @@ -5,8 +5,8 @@
use BrainExe\Core\Authentication\Register;
use BrainExe\Core\Authentication\UserVO;
use BrainExe\Core\Console\CreateUserCommand;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\HttpFoundation\Session\Session;
Expand All @@ -15,7 +15,7 @@
/**
* @covers \BrainExe\Core\Console\CreateUserCommand
*/
class CreateUserCommandTest extends PHPUnit_Framework_TestCase
class CreateUserCommandTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Console/ListServicesCommandTest.php
Expand Up @@ -6,7 +6,7 @@
use BrainExe\Core\DependencyInjection\Rebuild;
use BrainExe\Core\EventDispatcher\EventDispatcher;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Console/ListenerTest.php
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Console\Listener;
use BrainExe\Core\EventDispatcher\Events\ConsoleEvent;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\BufferedOutput;
Expand Down
4 changes: 2 additions & 2 deletions Tests/BrainExe/Core/Console/ServerRunCommandTest.php
Expand Up @@ -3,8 +3,8 @@
namespace Tests\BrainExe\Core\Console;

use BrainExe\Core\Console\ServerRunCommand;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Process\Process;
Expand All @@ -13,7 +13,7 @@
/**
* @covers \BrainExe\Core\Console\ServerRunCommand
*/
class ServerRunCommandTest extends PHPUnit_Framework_TestCase
class ServerRunCommandTest extends TestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/CoreTest.php
Expand Up @@ -3,7 +3,7 @@
namespace BrainExe\Tests;

use BrainExe\Core\Core;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Container;

class CoreTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Cron/DefaultCronsTest.php
Expand Up @@ -3,7 +3,7 @@
namespace BrainExe\Tests\Core\Cron;

use BrainExe\Core\Cron\DefaultCrons;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

class DefaultCronsTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/BrainExe/Core/Cron/ExpressionTest.php
Expand Up @@ -3,7 +3,7 @@
namespace BrainExe\Tests\Core\Cron;

use BrainExe\Core\Cron\Expression;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;

class ExpressionTest extends TestCase
{
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\DependencyInjection\CompilerPass\ConfigCompilerPass;
use BrainExe\Core\Environment;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class ConfigCompilerPassTest extends TestCase
Expand Down
Expand Up @@ -5,7 +5,7 @@
use BrainExe\Core\Console\ProxyCommand;
use BrainExe\Core\DependencyInjection\CompilerPass\ConsoleCompilerPass;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down

0 comments on commit ad8ed5e

Please sign in to comment.