test cases inherit from PhpUnit testcase with namespeces

This name is available since phpunit 4.8.36 and 5.4.3.
This commit is contained in:
SimonHeimberg 2017-07-24 08:45:52 +02:00
parent 191dc6fc3d
commit 7a8ed48e3d
32 changed files with 33 additions and 33 deletions

View file

@ -4,7 +4,7 @@ namespace Tests\b8;
use b8\Config, b8\Cache; use b8\Config, b8\Cache;
class CacheTest extends \PHPUnit_Framework_TestCase class CacheTest extends \PHPUnit\Framework\TestCase
{ {
public function testCreateSingleton() public function testCreateSingleton()
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\b8;
use b8\Config; use b8\Config;
use b8\Database; use b8\Database;
class DatabaseTest extends \PHPUnit_Framework_TestCase class DatabaseTest extends \PHPUnit\Framework\TestCase
{ {
protected function setUp() protected function setUp()
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\b8;
use b8\Form, b8\Config; use b8\Form, b8\Config;
class FormTest extends \PHPUnit_Framework_TestCase class FormTest extends \PHPUnit\Framework\TestCase
{ {
public function testFormBasics() public function testFormBasics()
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\b8;
use b8\Exception\HttpException; use b8\Exception\HttpException;
class HttpExceptionTest extends \PHPUnit_Framework_TestCase class HttpExceptionTest extends \PHPUnit\Framework\TestCase
{ {
public function testHttpExceptionIsException() public function testHttpExceptionIsException()
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\b8;
use b8\View; use b8\View;
use b8\View\Template; use b8\View\Template;
class ViewTest extends \PHPUnit_Framework_TestCase class ViewTest extends \PHPUnit\Framework\TestCase
{ {
public function testSimpleView() public function testSimpleView()
{ {

View file

@ -6,7 +6,7 @@ use PHPCensor\Command\CreateAdminCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
class CreateAdminCommandTest extends \PHPUnit_Framework_TestCase class CreateAdminCommandTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject * @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject

View file

@ -6,7 +6,7 @@ use PHPCensor\Command\CreateBuildCommand;
use Symfony\Component\Console\Application; use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
class CreateBuildCommandTest extends \PHPUnit_Framework_TestCase class CreateBuildCommandTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject * @var \PHPCensor\Command\CreateAdminCommand|\PHPUnit_Framework_MockObject_MockObject

View file

@ -6,7 +6,7 @@ use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Console\Helper\HelperSet; use Symfony\Component\Console\Helper\HelperSet;
class InstallCommandTest extends \PHPUnit_Framework_TestCase class InstallCommandTest extends \PHPUnit\Framework\TestCase
{ {
public $config; public $config;

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Controller;
use PHPCensor\Controller\WebhookController; use PHPCensor\Controller\WebhookController;
class WebhookControllerTest extends \PHPUnit_Framework_TestCase class WebhookControllerTest extends \PHPUnit\Framework\TestCase
{ {
public function test_wrong_action_name_return_json_with_error() public function test_wrong_action_name_return_json_with_error()
{ {

View file

@ -3,9 +3,9 @@
namespace Tests\PHPCensor\Helper; namespace Tests\PHPCensor\Helper;
use PHPCensor\Helper\AnsiConverter; use PHPCensor\Helper\AnsiConverter;
use PHPUnit_Framework_TestCase; use PHPUnit\Framework\TestCase;
class AnsiConverterTest extends PHPUnit_Framework_TestCase class AnsiConverterTest extends TestCase
{ {
public function testConvert_convertToHtml() public function testConvert_convertToHtml()
{ {

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Helper;
use PHPCensor\Helper\BuildInterpolator; use PHPCensor\Helper\BuildInterpolator;
class BuildInterpolatorTest extends \PHPUnit_Framework_TestCase class BuildInterpolatorTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var BuildInterpolator * @var BuildInterpolator

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Helper;
use PHPCensor\Helper\CommandExecutor; use PHPCensor\Helper\CommandExecutor;
class CommandExecutorTest extends \PHPUnit_Framework_TestCase class CommandExecutorTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var CommandExecutor * @var CommandExecutor

View file

@ -8,7 +8,7 @@ use PHPCensor\Helper\MailerFactory;
* Unit tests for the ProjectService class. * Unit tests for the ProjectService class.
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class MailerFactoryTest extends \PHPUnit_Framework_TestCase class MailerFactoryTest extends \PHPUnit\Framework\TestCase
{ {
public function setUp() public function setUp()
{ {

View file

@ -2,7 +2,7 @@
namespace Tests\PHPCensor; namespace Tests\PHPCensor;
class LocalizationTestCase extends \PHPUnit_Framework_TestCase class LocalizationTestCase extends \PHPUnit\Framework\TestCase
{ {
/** /**
* Returns a string representation of the test case. * Returns a string representation of the test case.

View file

@ -6,7 +6,7 @@ use PHPCensor\Logging\BuildLogger;
use Prophecy\Argument; use Prophecy\Argument;
use Psr\Log\LogLevel; use Psr\Log\LogLevel;
class BuildLoggerTest extends \PHPUnit_Framework_TestCase class BuildLoggerTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var BuildLogger * @var BuildLogger

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Helper;
use \PHPCensor\Logging\LoggerConfig; use \PHPCensor\Logging\LoggerConfig;
class LoggerConfigTest extends \PHPUnit_Framework_TestCase class LoggerConfigTest extends \PHPUnit\Framework\TestCase
{ {
public function testGetFor_ReturnsPSRLogger() public function testGetFor_ReturnsPSRLogger()
{ {

View file

@ -10,7 +10,7 @@ use PHPCensor\Model;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class BuildTest extends \PHPUnit_Framework_TestCase class BuildTest extends \PHPUnit\Framework\TestCase
{ {
public function setUp() public function setUp()
{ {

View file

@ -10,7 +10,7 @@ use PHPCensor\Model;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class ProjectTest extends \PHPUnit_Framework_TestCase class ProjectTest extends \PHPUnit\Framework\TestCase
{ {
public function testExecute_TestIsAValidModel() public function testExecute_TestIsAValidModel()
{ {

View file

@ -11,7 +11,7 @@ use PHPCensor\Model\Build;
* *
* @author meadsteve * @author meadsteve
*/ */
class EmailTest extends \PHPUnit_Framework_TestCase class EmailTest extends \PHPUnit\Framework\TestCase
{ {
/** /**

View file

@ -9,7 +9,7 @@ use PHPCensor\Plugin\Option\PhpUnitOptions;
* *
* @author Pablo Tejada <pablo@ptejada.com> * @author Pablo Tejada <pablo@ptejada.com>
*/ */
class PhpUnitOptionsTest extends \PHPUnit_Framework_TestCase class PhpUnitOptionsTest extends \PHPUnit\Framework\TestCase
{ {
public function validOptionsProvider() public function validOptionsProvider()
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Plugin;
use PHPCensor\Plugin\Phar as PharPlugin; use PHPCensor\Plugin\Phar as PharPlugin;
use Phar as PHPPhar; use Phar as PHPPhar;
class PharTest extends \PHPUnit_Framework_TestCase class PharTest extends \PHPUnit\Framework\TestCase
{ {
protected $directory; protected $directory;

View file

@ -7,7 +7,7 @@ namespace Tests\PHPCensor\Plugin;
* *
* @author Pablo Tejada <pablo@ptejada.com> * @author Pablo Tejada <pablo@ptejada.com>
*/ */
class PhpUnitTest extends \PHPUnit_Framework_TestCase class PhpUnitTest extends \PHPUnit\Framework\TestCase
{ {
public function testSingleConfigFile() public function testSingleConfigFile()
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Plugin\Util;
use PHPCensor\Plugin\Util\Executor; use PHPCensor\Plugin\Util\Executor;
use Prophecy\Argument; use Prophecy\Argument;
class ExecutorTest extends \PHPUnit_Framework_TestCase class ExecutorTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var Executor * @var Executor

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Util;
use PHPCensor\Plugin\Util\Factory; use PHPCensor\Plugin\Util\Factory;
class FactoryTest extends \PHPUnit_Framework_TestCase { class FactoryTest extends \PHPUnit\Framework\TestCase {
/** /**
* @var \PHPCensor\Plugin\Util\Factory * @var \PHPCensor\Plugin\Util\Factory

View file

@ -12,7 +12,7 @@ use PHPCensor\Plugin\Util\PhpUnitResultJunit;
* @package PHPCI * @package PHPCI
* @subpackage Plugin * @subpackage Plugin
*/ */
class PhpUnitResultTest extends \PHPUnit_Framework_TestCase class PhpUnitResultTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* Skipped test results * Skipped test results

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\ProcessControl;
/** /**
* Some helpers to * Some helpers to
*/ */
abstract class ProcessControlTest extends \PHPUnit_Framework_TestCase abstract class ProcessControlTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var resource * @var resource

View file

@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Security\Authentication;
use PHPCensor\Security\Authentication\Service; use PHPCensor\Security\Authentication\Service;
class ServiceTest extends \PHPUnit_Framework_TestCase class ServiceTest extends \PHPUnit\Framework\TestCase
{ {
public function testGetInstance() public function testGetInstance()
{ {

View file

@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Security\Authentication\UserProvider;
use PHPCensor\Model\User; use PHPCensor\Model\User;
use PHPCensor\Security\Authentication\UserProvider\Internal; use PHPCensor\Security\Authentication\UserProvider\Internal;
class InternalTest extends \PHPUnit_Framework_TestCase class InternalTest extends \PHPUnit\Framework\TestCase
{ {
/** /**
* @var Internal * @var Internal

View file

@ -11,7 +11,7 @@ use PHPCensor\Service\BuildService;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class BuildServiceTest extends \PHPUnit_Framework_TestCase class BuildServiceTest extends \PHPUnit\Framework\TestCase
{ {
/** /**

View file

@ -11,7 +11,7 @@ use PHPCensor\Service\BuildStatusService;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase class BuildStatusServiceTest extends \PHPUnit\Framework\TestCase
{ {
const BRANCH = 'master'; const BRANCH = 'master';

View file

@ -10,7 +10,7 @@ use PHPCensor\Service\ProjectService;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class ProjectServiceTest extends \PHPUnit_Framework_TestCase class ProjectServiceTest extends \PHPUnit\Framework\TestCase
{ {
/** /**

View file

@ -10,7 +10,7 @@ use PHPCensor\Service\UserService;
* *
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
*/ */
class UserServiceTest extends \PHPUnit_Framework_TestCase class UserServiceTest extends \PHPUnit\Framework\TestCase
{ {
/** /**