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:
parent
191dc6fc3d
commit
7a8ed48e3d
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,7 +8,7 @@ use PHPCensor\Helper\MailerFactory;
|
|||
* Unit tests for the ProjectService class.
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class MailerFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
class MailerFactoryTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class BuildTest extends \PHPUnit_Framework_TestCase
|
||||
class BuildTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Model;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class ProjectTest extends \PHPUnit_Framework_TestCase
|
||||
class ProjectTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testExecute_TestIsAValidModel()
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ use PHPCensor\Model\Build;
|
|||
*
|
||||
* @author meadsteve
|
||||
*/
|
||||
class EmailTest extends \PHPUnit_Framework_TestCase
|
||||
class EmailTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
@ -9,7 +9,7 @@ use PHPCensor\Plugin\Option\PhpUnitOptions;
|
|||
*
|
||||
* @author Pablo Tejada <pablo@ptejada.com>
|
||||
*/
|
||||
class PhpUnitOptionsTest extends \PHPUnit_Framework_TestCase
|
||||
class PhpUnitOptionsTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function validOptionsProvider()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace Tests\PHPCensor\Plugin;
|
|||
*
|
||||
* @author Pablo Tejada <pablo@ptejada.com>
|
||||
*/
|
||||
class PhpUnitTest extends \PHPUnit_Framework_TestCase
|
||||
class PhpUnitTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testSingleConfigFile()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -11,7 +11,7 @@ use PHPCensor\Service\BuildService;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class BuildServiceTest extends \PHPUnit_Framework_TestCase
|
||||
class BuildServiceTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ use PHPCensor\Service\BuildStatusService;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
|
||||
class BuildStatusServiceTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
const BRANCH = 'master';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Service\ProjectService;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class ProjectServiceTest extends \PHPUnit_Framework_TestCase
|
||||
class ProjectServiceTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ use PHPCensor\Service\UserService;
|
|||
*
|
||||
* @author Dan Cryer <dan@block8.co.uk>
|
||||
*/
|
||||
class UserServiceTest extends \PHPUnit_Framework_TestCase
|
||||
class UserServiceTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue