From 7a8ed48e3dcfd0bcaa901e01c19e95a1d80f2833 Mon Sep 17 00:00:00 2001 From: SimonHeimberg Date: Mon, 24 Jul 2017 08:45:52 +0200 Subject: [PATCH] test cases inherit from PhpUnit testcase with namespeces This name is available since phpunit 4.8.36 and 5.4.3. --- tests/B8Framework/CacheTest.php | 2 +- tests/B8Framework/DatabaseTest.php | 2 +- tests/B8Framework/FormTest.php | 2 +- tests/B8Framework/HttpExceptionTest.php | 2 +- tests/B8Framework/ViewTest.php | 2 +- tests/PHPCensor/Command/CreateAdminCommandTest.php | 2 +- tests/PHPCensor/Command/CreateBuildCommandTest.php | 2 +- tests/PHPCensor/Command/InstallCommandTest.php | 2 +- tests/PHPCensor/Controller/WebhookControllerTest.php | 2 +- tests/PHPCensor/Helper/AnsiConverterTest.php | 4 ++-- tests/PHPCensor/Helper/BuildInterpolatorTest.php | 2 +- tests/PHPCensor/Helper/CommandExecutorTest.php | 2 +- tests/PHPCensor/Helper/MailerFactoryTest.php | 2 +- tests/PHPCensor/LocalizationTestCase.php | 2 +- tests/PHPCensor/Logging/BuildLoggerTest.php | 2 +- tests/PHPCensor/Logging/LoggerConfigTest.php | 2 +- tests/PHPCensor/Model/BuildTest.php | 2 +- tests/PHPCensor/Model/ProjectTest.php | 2 +- tests/PHPCensor/Plugin/EmailTest.php | 2 +- tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php | 2 +- tests/PHPCensor/Plugin/PharTest.php | 2 +- tests/PHPCensor/Plugin/PhpUnitTest.php | 2 +- tests/PHPCensor/Plugin/Util/ExecutorTest.php | 2 +- tests/PHPCensor/Plugin/Util/FactoryTest.php | 2 +- tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php | 2 +- tests/PHPCensor/ProcessControl/ProcessControlTest.php | 2 +- tests/PHPCensor/Security/Authentication/ServiceTest.php | 2 +- .../Security/Authentication/UserProvider/InternalTest.php | 2 +- tests/PHPCensor/Service/BuildServiceTest.php | 2 +- tests/PHPCensor/Service/BuiltStatusServiceTest.php | 2 +- tests/PHPCensor/Service/ProjectServiceTest.php | 2 +- tests/PHPCensor/Service/UserServiceTest.php | 2 +- 32 files changed, 33 insertions(+), 33 deletions(-) diff --git a/tests/B8Framework/CacheTest.php b/tests/B8Framework/CacheTest.php index 8afc08cd..28fbe2f0 100755 --- a/tests/B8Framework/CacheTest.php +++ b/tests/B8Framework/CacheTest.php @@ -4,7 +4,7 @@ namespace Tests\b8; use b8\Config, b8\Cache; -class CacheTest extends \PHPUnit_Framework_TestCase +class CacheTest extends \PHPUnit\Framework\TestCase { public function testCreateSingleton() { diff --git a/tests/B8Framework/DatabaseTest.php b/tests/B8Framework/DatabaseTest.php index 680a2a9d..c822361e 100755 --- a/tests/B8Framework/DatabaseTest.php +++ b/tests/B8Framework/DatabaseTest.php @@ -5,7 +5,7 @@ namespace Tests\b8; use b8\Config; use b8\Database; -class DatabaseTest extends \PHPUnit_Framework_TestCase +class DatabaseTest extends \PHPUnit\Framework\TestCase { protected function setUp() { diff --git a/tests/B8Framework/FormTest.php b/tests/B8Framework/FormTest.php index 360047df..d8def11f 100755 --- a/tests/B8Framework/FormTest.php +++ b/tests/B8Framework/FormTest.php @@ -4,7 +4,7 @@ namespace Tests\b8; use b8\Form, b8\Config; -class FormTest extends \PHPUnit_Framework_TestCase +class FormTest extends \PHPUnit\Framework\TestCase { public function testFormBasics() { diff --git a/tests/B8Framework/HttpExceptionTest.php b/tests/B8Framework/HttpExceptionTest.php index 71d2ab0d..de63ee16 100755 --- a/tests/B8Framework/HttpExceptionTest.php +++ b/tests/B8Framework/HttpExceptionTest.php @@ -4,7 +4,7 @@ namespace Tests\b8; use b8\Exception\HttpException; -class HttpExceptionTest extends \PHPUnit_Framework_TestCase +class HttpExceptionTest extends \PHPUnit\Framework\TestCase { public function testHttpExceptionIsException() { diff --git a/tests/B8Framework/ViewTest.php b/tests/B8Framework/ViewTest.php index bb9265fe..8f35524d 100755 --- a/tests/B8Framework/ViewTest.php +++ b/tests/B8Framework/ViewTest.php @@ -5,7 +5,7 @@ namespace Tests\b8; use b8\View; use b8\View\Template; -class ViewTest extends \PHPUnit_Framework_TestCase +class ViewTest extends \PHPUnit\Framework\TestCase { public function testSimpleView() { diff --git a/tests/PHPCensor/Command/CreateAdminCommandTest.php b/tests/PHPCensor/Command/CreateAdminCommandTest.php index e832c3e8..087682be 100644 --- a/tests/PHPCensor/Command/CreateAdminCommandTest.php +++ b/tests/PHPCensor/Command/CreateAdminCommandTest.php @@ -6,7 +6,7 @@ use PHPCensor\Command\CreateAdminCommand; use Symfony\Component\Console\Application; 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 diff --git a/tests/PHPCensor/Command/CreateBuildCommandTest.php b/tests/PHPCensor/Command/CreateBuildCommandTest.php index 033e647b..06cb7bd1 100644 --- a/tests/PHPCensor/Command/CreateBuildCommandTest.php +++ b/tests/PHPCensor/Command/CreateBuildCommandTest.php @@ -6,7 +6,7 @@ use PHPCensor\Command\CreateBuildCommand; use Symfony\Component\Console\Application; 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 diff --git a/tests/PHPCensor/Command/InstallCommandTest.php b/tests/PHPCensor/Command/InstallCommandTest.php index 28f55687..2372566b 100644 --- a/tests/PHPCensor/Command/InstallCommandTest.php +++ b/tests/PHPCensor/Command/InstallCommandTest.php @@ -6,7 +6,7 @@ use Symfony\Component\Console\Application; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Component\Console\Helper\HelperSet; -class InstallCommandTest extends \PHPUnit_Framework_TestCase +class InstallCommandTest extends \PHPUnit\Framework\TestCase { public $config; diff --git a/tests/PHPCensor/Controller/WebhookControllerTest.php b/tests/PHPCensor/Controller/WebhookControllerTest.php index fd4480c5..0279fa4e 100644 --- a/tests/PHPCensor/Controller/WebhookControllerTest.php +++ b/tests/PHPCensor/Controller/WebhookControllerTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Controller; 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() { diff --git a/tests/PHPCensor/Helper/AnsiConverterTest.php b/tests/PHPCensor/Helper/AnsiConverterTest.php index 2ee7a7ef..2d978fa1 100644 --- a/tests/PHPCensor/Helper/AnsiConverterTest.php +++ b/tests/PHPCensor/Helper/AnsiConverterTest.php @@ -3,9 +3,9 @@ namespace Tests\PHPCensor\Helper; 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() { diff --git a/tests/PHPCensor/Helper/BuildInterpolatorTest.php b/tests/PHPCensor/Helper/BuildInterpolatorTest.php index 2528c1f0..d55caad2 100644 --- a/tests/PHPCensor/Helper/BuildInterpolatorTest.php +++ b/tests/PHPCensor/Helper/BuildInterpolatorTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Helper; use PHPCensor\Helper\BuildInterpolator; -class BuildInterpolatorTest extends \PHPUnit_Framework_TestCase +class BuildInterpolatorTest extends \PHPUnit\Framework\TestCase { /** * @var BuildInterpolator diff --git a/tests/PHPCensor/Helper/CommandExecutorTest.php b/tests/PHPCensor/Helper/CommandExecutorTest.php index 19876952..03e24d20 100644 --- a/tests/PHPCensor/Helper/CommandExecutorTest.php +++ b/tests/PHPCensor/Helper/CommandExecutorTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Helper; use PHPCensor\Helper\CommandExecutor; -class CommandExecutorTest extends \PHPUnit_Framework_TestCase +class CommandExecutorTest extends \PHPUnit\Framework\TestCase { /** * @var CommandExecutor diff --git a/tests/PHPCensor/Helper/MailerFactoryTest.php b/tests/PHPCensor/Helper/MailerFactoryTest.php index 738db902..026fd358 100644 --- a/tests/PHPCensor/Helper/MailerFactoryTest.php +++ b/tests/PHPCensor/Helper/MailerFactoryTest.php @@ -8,7 +8,7 @@ use PHPCensor\Helper\MailerFactory; * Unit tests for the ProjectService class. * @author Dan Cryer */ -class MailerFactoryTest extends \PHPUnit_Framework_TestCase +class MailerFactoryTest extends \PHPUnit\Framework\TestCase { public function setUp() { diff --git a/tests/PHPCensor/LocalizationTestCase.php b/tests/PHPCensor/LocalizationTestCase.php index 25bb0443..d6ac7733 100644 --- a/tests/PHPCensor/LocalizationTestCase.php +++ b/tests/PHPCensor/LocalizationTestCase.php @@ -2,7 +2,7 @@ namespace Tests\PHPCensor; -class LocalizationTestCase extends \PHPUnit_Framework_TestCase +class LocalizationTestCase extends \PHPUnit\Framework\TestCase { /** * Returns a string representation of the test case. diff --git a/tests/PHPCensor/Logging/BuildLoggerTest.php b/tests/PHPCensor/Logging/BuildLoggerTest.php index 762abf7d..5f380b5b 100644 --- a/tests/PHPCensor/Logging/BuildLoggerTest.php +++ b/tests/PHPCensor/Logging/BuildLoggerTest.php @@ -6,7 +6,7 @@ use PHPCensor\Logging\BuildLogger; use Prophecy\Argument; use Psr\Log\LogLevel; -class BuildLoggerTest extends \PHPUnit_Framework_TestCase +class BuildLoggerTest extends \PHPUnit\Framework\TestCase { /** * @var BuildLogger diff --git a/tests/PHPCensor/Logging/LoggerConfigTest.php b/tests/PHPCensor/Logging/LoggerConfigTest.php index 0a85e332..a62d309f 100644 --- a/tests/PHPCensor/Logging/LoggerConfigTest.php +++ b/tests/PHPCensor/Logging/LoggerConfigTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Helper; use \PHPCensor\Logging\LoggerConfig; -class LoggerConfigTest extends \PHPUnit_Framework_TestCase +class LoggerConfigTest extends \PHPUnit\Framework\TestCase { public function testGetFor_ReturnsPSRLogger() { diff --git a/tests/PHPCensor/Model/BuildTest.php b/tests/PHPCensor/Model/BuildTest.php index e87eea59..a9712969 100644 --- a/tests/PHPCensor/Model/BuildTest.php +++ b/tests/PHPCensor/Model/BuildTest.php @@ -10,7 +10,7 @@ use PHPCensor\Model; * * @author Dan Cryer */ -class BuildTest extends \PHPUnit_Framework_TestCase +class BuildTest extends \PHPUnit\Framework\TestCase { public function setUp() { diff --git a/tests/PHPCensor/Model/ProjectTest.php b/tests/PHPCensor/Model/ProjectTest.php index 4fad6d98..5f266502 100644 --- a/tests/PHPCensor/Model/ProjectTest.php +++ b/tests/PHPCensor/Model/ProjectTest.php @@ -10,7 +10,7 @@ use PHPCensor\Model; * * @author Dan Cryer */ -class ProjectTest extends \PHPUnit_Framework_TestCase +class ProjectTest extends \PHPUnit\Framework\TestCase { public function testExecute_TestIsAValidModel() { diff --git a/tests/PHPCensor/Plugin/EmailTest.php b/tests/PHPCensor/Plugin/EmailTest.php index 0ee8ef4f..ef3dfc34 100644 --- a/tests/PHPCensor/Plugin/EmailTest.php +++ b/tests/PHPCensor/Plugin/EmailTest.php @@ -11,7 +11,7 @@ use PHPCensor\Model\Build; * * @author meadsteve */ -class EmailTest extends \PHPUnit_Framework_TestCase +class EmailTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php b/tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php index cd5d9acc..1bb696a0 100644 --- a/tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php +++ b/tests/PHPCensor/Plugin/Option/PhpUnitOptionsTest.php @@ -9,7 +9,7 @@ use PHPCensor\Plugin\Option\PhpUnitOptions; * * @author Pablo Tejada */ -class PhpUnitOptionsTest extends \PHPUnit_Framework_TestCase +class PhpUnitOptionsTest extends \PHPUnit\Framework\TestCase { public function validOptionsProvider() { diff --git a/tests/PHPCensor/Plugin/PharTest.php b/tests/PHPCensor/Plugin/PharTest.php index 8f8f469c..e95848d3 100644 --- a/tests/PHPCensor/Plugin/PharTest.php +++ b/tests/PHPCensor/Plugin/PharTest.php @@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Plugin; use PHPCensor\Plugin\Phar as PharPlugin; use Phar as PHPPhar; -class PharTest extends \PHPUnit_Framework_TestCase +class PharTest extends \PHPUnit\Framework\TestCase { protected $directory; diff --git a/tests/PHPCensor/Plugin/PhpUnitTest.php b/tests/PHPCensor/Plugin/PhpUnitTest.php index 068151fa..fbdea937 100644 --- a/tests/PHPCensor/Plugin/PhpUnitTest.php +++ b/tests/PHPCensor/Plugin/PhpUnitTest.php @@ -7,7 +7,7 @@ namespace Tests\PHPCensor\Plugin; * * @author Pablo Tejada */ -class PhpUnitTest extends \PHPUnit_Framework_TestCase +class PhpUnitTest extends \PHPUnit\Framework\TestCase { public function testSingleConfigFile() { diff --git a/tests/PHPCensor/Plugin/Util/ExecutorTest.php b/tests/PHPCensor/Plugin/Util/ExecutorTest.php index 21abb900..9f7c6cc2 100644 --- a/tests/PHPCensor/Plugin/Util/ExecutorTest.php +++ b/tests/PHPCensor/Plugin/Util/ExecutorTest.php @@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Plugin\Util; use PHPCensor\Plugin\Util\Executor; use Prophecy\Argument; -class ExecutorTest extends \PHPUnit_Framework_TestCase +class ExecutorTest extends \PHPUnit\Framework\TestCase { /** * @var Executor diff --git a/tests/PHPCensor/Plugin/Util/FactoryTest.php b/tests/PHPCensor/Plugin/Util/FactoryTest.php index 5acdb813..d284a358 100644 --- a/tests/PHPCensor/Plugin/Util/FactoryTest.php +++ b/tests/PHPCensor/Plugin/Util/FactoryTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Plugin\Util; use PHPCensor\Plugin\Util\Factory; -class FactoryTest extends \PHPUnit_Framework_TestCase { +class FactoryTest extends \PHPUnit\Framework\TestCase { /** * @var \PHPCensor\Plugin\Util\Factory diff --git a/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php b/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php index 710ee60e..6f10551c 100644 --- a/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php +++ b/tests/PHPCensor/Plugin/Util/PhpUnitResultTest.php @@ -12,7 +12,7 @@ use PHPCensor\Plugin\Util\PhpUnitResultJunit; * @package PHPCI * @subpackage Plugin */ -class PhpUnitResultTest extends \PHPUnit_Framework_TestCase +class PhpUnitResultTest extends \PHPUnit\Framework\TestCase { /** * Skipped test results diff --git a/tests/PHPCensor/ProcessControl/ProcessControlTest.php b/tests/PHPCensor/ProcessControl/ProcessControlTest.php index 75a01a48..45439918 100644 --- a/tests/PHPCensor/ProcessControl/ProcessControlTest.php +++ b/tests/PHPCensor/ProcessControl/ProcessControlTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\ProcessControl; /** * Some helpers to */ -abstract class ProcessControlTest extends \PHPUnit_Framework_TestCase +abstract class ProcessControlTest extends \PHPUnit\Framework\TestCase { /** * @var resource diff --git a/tests/PHPCensor/Security/Authentication/ServiceTest.php b/tests/PHPCensor/Security/Authentication/ServiceTest.php index f5b31e76..35488822 100644 --- a/tests/PHPCensor/Security/Authentication/ServiceTest.php +++ b/tests/PHPCensor/Security/Authentication/ServiceTest.php @@ -4,7 +4,7 @@ namespace Tests\PHPCensor\Security\Authentication; use PHPCensor\Security\Authentication\Service; -class ServiceTest extends \PHPUnit_Framework_TestCase +class ServiceTest extends \PHPUnit\Framework\TestCase { public function testGetInstance() { diff --git a/tests/PHPCensor/Security/Authentication/UserProvider/InternalTest.php b/tests/PHPCensor/Security/Authentication/UserProvider/InternalTest.php index 9412caf6..f162f393 100644 --- a/tests/PHPCensor/Security/Authentication/UserProvider/InternalTest.php +++ b/tests/PHPCensor/Security/Authentication/UserProvider/InternalTest.php @@ -5,7 +5,7 @@ namespace Tests\PHPCensor\Security\Authentication\UserProvider; use PHPCensor\Model\User; use PHPCensor\Security\Authentication\UserProvider\Internal; -class InternalTest extends \PHPUnit_Framework_TestCase +class InternalTest extends \PHPUnit\Framework\TestCase { /** * @var Internal diff --git a/tests/PHPCensor/Service/BuildServiceTest.php b/tests/PHPCensor/Service/BuildServiceTest.php index 10f8e6cd..f4c64501 100644 --- a/tests/PHPCensor/Service/BuildServiceTest.php +++ b/tests/PHPCensor/Service/BuildServiceTest.php @@ -11,7 +11,7 @@ use PHPCensor\Service\BuildService; * * @author Dan Cryer */ -class BuildServiceTest extends \PHPUnit_Framework_TestCase +class BuildServiceTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/PHPCensor/Service/BuiltStatusServiceTest.php b/tests/PHPCensor/Service/BuiltStatusServiceTest.php index 393496b8..bd20770f 100644 --- a/tests/PHPCensor/Service/BuiltStatusServiceTest.php +++ b/tests/PHPCensor/Service/BuiltStatusServiceTest.php @@ -11,7 +11,7 @@ use PHPCensor\Service\BuildStatusService; * * @author Dan Cryer */ -class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase +class BuildStatusServiceTest extends \PHPUnit\Framework\TestCase { const BRANCH = 'master'; diff --git a/tests/PHPCensor/Service/ProjectServiceTest.php b/tests/PHPCensor/Service/ProjectServiceTest.php index fbb4efe1..58b510c2 100644 --- a/tests/PHPCensor/Service/ProjectServiceTest.php +++ b/tests/PHPCensor/Service/ProjectServiceTest.php @@ -10,7 +10,7 @@ use PHPCensor\Service\ProjectService; * * @author Dan Cryer */ -class ProjectServiceTest extends \PHPUnit_Framework_TestCase +class ProjectServiceTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/PHPCensor/Service/UserServiceTest.php b/tests/PHPCensor/Service/UserServiceTest.php index 679c2d65..9dad0441 100644 --- a/tests/PHPCensor/Service/UserServiceTest.php +++ b/tests/PHPCensor/Service/UserServiceTest.php @@ -10,7 +10,7 @@ use PHPCensor\Service\UserService; * * @author Dan Cryer */ -class UserServiceTest extends \PHPUnit_Framework_TestCase +class UserServiceTest extends \PHPUnit\Framework\TestCase { /**