mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Test classes should be marked as final and internal
This commit is contained in:
parent
625be30564
commit
7e4e56c72a
@ -5,7 +5,10 @@ namespace Tests\Support;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
class DatabaseTestCase extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DatabaseTestCase extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Session\SessionInterface;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockSession;
|
||||
|
||||
class SessionTestCase extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class SessionTestCase extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var SessionInterface
|
||||
|
@ -2,7 +2,10 @@
|
||||
|
||||
use Tests\Support\Models\ExampleModel;
|
||||
|
||||
class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
class ExampleSessionTest extends \Tests\Support\SessionTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExampleSessionTest extends \Tests\Support\SessionTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
class ExampleTest extends \CodeIgniter\Test\CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExampleTest extends \CodeIgniter\Test\CIUnitTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -5,7 +5,10 @@ namespace Tests\Support;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
class DatabaseTestCase extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DatabaseTestCase extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Session\SessionInterface;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockSession;
|
||||
|
||||
class SessionTestCase extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class SessionTestCase extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var SessionInterface
|
||||
|
@ -2,7 +2,10 @@
|
||||
|
||||
use Tests\Support\Models\ExampleModel;
|
||||
|
||||
class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExampleDatabaseTest extends \Tests\Support\DatabaseTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
class ExampleSessionTest extends \Tests\Support\SessionTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExampleSessionTest extends \Tests\Support\SessionTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -2,7 +2,10 @@
|
||||
|
||||
use Config\Services;
|
||||
|
||||
class HealthTest extends \CodeIgniter\Test\CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class HealthTest extends \CodeIgniter\Test\CIUnitTestCase
|
||||
{
|
||||
public function setUp(): void
|
||||
{
|
||||
|
@ -29,9 +29,13 @@ use ReflectionException;
|
||||
* Provides a base class with the trait for doing full HTTP testing
|
||||
* against your application.
|
||||
*
|
||||
* @no-final
|
||||
*
|
||||
* @deprecated Use FeatureTestTrait instead
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class FeatureTestCase extends CIUnitTestCase
|
||||
{
|
||||
|
@ -23,6 +23,10 @@ use PHPUnit\Framework\TestCase;
|
||||
*
|
||||
* Consolidated response processing
|
||||
* for test results.
|
||||
*
|
||||
* @no-final
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class TestResponse extends TestCase
|
||||
{
|
||||
|
@ -12,7 +12,10 @@ use CodeIgniter\Test\Mock\MockResponse;
|
||||
use Config\App;
|
||||
use stdClass;
|
||||
|
||||
class ResponseTraitTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ResponseTraitTest extends CIUnitTestCase
|
||||
{
|
||||
protected $request;
|
||||
protected $response;
|
||||
|
@ -8,7 +8,10 @@ use Config\Modules;
|
||||
use Config\Services;
|
||||
use UnnamespacedClass;
|
||||
|
||||
class AutoloaderTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class AutoloaderTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var Autoloader
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Autoload;
|
||||
use Config\Modules;
|
||||
|
||||
class FileLocatorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class FileLocatorTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var FileLocator
|
||||
|
@ -6,6 +6,9 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use ReflectionProperty;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CLITest extends CIUnitTestCase
|
||||
{
|
||||
private $stream_filter;
|
||||
|
@ -7,6 +7,9 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use Config\Services;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CommandRunnerTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
|
@ -10,7 +10,10 @@ use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use CodeIgniter\Test\Mock\MockCLIConfig;
|
||||
use CodeIgniter\Test\Mock\MockCodeIgniter;
|
||||
|
||||
class ConsoleTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ConsoleTest extends CIUnitTestCase
|
||||
{
|
||||
private $stream_filter;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Cache\Handlers\DummyHandler;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Cache;
|
||||
|
||||
class CacheFactoryTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CacheFactoryTest extends CIUnitTestCase
|
||||
{
|
||||
private static $directory = 'CacheFactory';
|
||||
private $cacheFactory;
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use stdClass;
|
||||
use Tests\Support\Cache\RestrictiveHandler;
|
||||
|
||||
class BaseHandlerTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider invalidTypeProvider
|
||||
|
@ -4,7 +4,10 @@ namespace CodeIgniter\Cache\Handlers;
|
||||
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
|
||||
class DummyHandlerTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DummyHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
private $dummyHandler;
|
||||
|
||||
|
@ -6,6 +6,9 @@ use CodeIgniter\CLI\CLI;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Cache;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class FileHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
private static $directory = 'FileHandler';
|
||||
|
@ -7,6 +7,9 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Cache;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class MemcachedHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
private $memcachedHandler;
|
||||
|
@ -6,6 +6,9 @@ use CodeIgniter\CLI\CLI;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Cache;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class PredisHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
private $PredisHandler;
|
||||
|
@ -6,6 +6,9 @@ use CodeIgniter\CLI\CLI;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Cache;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class RedisHandlerTest extends CIUnitTestCase
|
||||
{
|
||||
private $redisHandler;
|
||||
|
@ -11,8 +11,10 @@ use Config\Modules;
|
||||
|
||||
/**
|
||||
* @backupGlobals enabled
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class CodeIgniterTest extends CIUnitTestCase
|
||||
final class CodeIgniterTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var CodeIgniter
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Services;
|
||||
use Tests\Support\Commands\AppInfo;
|
||||
|
||||
class BaseCommandTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseCommandTest extends CIUnitTestCase
|
||||
{
|
||||
protected $logger;
|
||||
protected $runner;
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use Config\Services;
|
||||
|
||||
class ClearCacheTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ClearCacheTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ClearDebugbarTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ClearDebugbarTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
protected $time;
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ClearLogsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ClearLogsTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
protected $date;
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use Config\Services;
|
||||
use Tests\Support\Commands\ParamsReveal;
|
||||
|
||||
class CommandTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CommandTest extends CIUnitTestCase
|
||||
{
|
||||
private $streamFilter;
|
||||
protected $logger;
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ConfigGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ConfigGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ConfigurableSortImportsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ConfigurableSortImportsTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ControllerGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ControllerGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -8,7 +8,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use Config\Database;
|
||||
|
||||
class CreateDatabaseTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CreateDatabaseTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class DatabaseCommandsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DatabaseCommandsTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class EntityGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class EntityGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,6 +5,9 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class EnvironmentCommandTest extends CIUnitTestCase
|
||||
{
|
||||
private $streamFilter;
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class FilterGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class FilterGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class GenerateKeyTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class GenerateKeyTest extends CIUnitTestCase
|
||||
{
|
||||
private $streamFilter;
|
||||
private $envPath;
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class GeneratorsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class GeneratorsTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class HelpCommandTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class HelpCommandTest extends CIUnitTestCase
|
||||
{
|
||||
private $streamFilter;
|
||||
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
use Config\Services;
|
||||
|
||||
class InfoCacheTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class InfoCacheTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class MigrationGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class MigrationGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ModelGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ModelGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ScaffoldGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ScaffoldGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class SeederGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class SeederGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class SessionsCommandsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class SessionsCommandsTest extends CIUnitTestCase
|
||||
{
|
||||
private $streamFilter;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Commands;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Filters\CITestStreamFilter;
|
||||
|
||||
class ValidationGeneratorTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ValidationGeneratorTest extends CIUnitTestCase
|
||||
{
|
||||
protected $streamFilter;
|
||||
|
||||
|
@ -4,7 +4,10 @@ namespace CodeIgniter;
|
||||
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
|
||||
class CommonFunctionsSendTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CommonFunctionsSendTest extends CIUnitTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
@ -26,8 +26,10 @@ use Tests\Support\Models\JobModel;
|
||||
|
||||
/**
|
||||
* @backupGlobals enabled
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class CommonFunctionsTest extends CIUnitTestCase
|
||||
final class CommonFunctionsTest extends CIUnitTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
@ -7,6 +7,9 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use ReflectionClass;
|
||||
use ReflectionMethod;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CommonSingleServiceTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
|
@ -8,7 +8,10 @@ use RegistrarConfig;
|
||||
use RuntimeException;
|
||||
use SimpleConfig;
|
||||
|
||||
class BaseConfigTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseConfigTest extends CIUnitTestCase
|
||||
{
|
||||
protected $fixturesFolder;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\DocTypes;
|
||||
use stdClass;
|
||||
|
||||
class ConfigTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ConfigTest extends CIUnitTestCase
|
||||
{
|
||||
public function testCreateSingleInstance()
|
||||
{
|
||||
|
@ -7,8 +7,10 @@ use org\bovigo\vfs\vfsStream;
|
||||
|
||||
/**
|
||||
* @backupGlobals enabled
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DotEnvTest extends CIUnitTestCase
|
||||
final class DotEnvTest extends CIUnitTestCase
|
||||
{
|
||||
protected $fixturesFolder;
|
||||
|
||||
|
@ -9,7 +9,10 @@ use stdClass;
|
||||
use Tests\Support\Widgets\OtherWidget;
|
||||
use Tests\Support\Widgets\SomeWidget;
|
||||
|
||||
class FactoriesTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class FactoriesTest extends CIUnitTestCase
|
||||
{
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Config;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Mimes;
|
||||
|
||||
class MimesTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class MimesTest extends CIUnitTestCase
|
||||
{
|
||||
public function extensionsList()
|
||||
{
|
||||
|
@ -36,7 +36,10 @@ use Config\App;
|
||||
use Config\Exceptions;
|
||||
use Tests\Support\Config\Services as Services;
|
||||
|
||||
class ServicesTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ServicesTest extends CIUnitTestCase
|
||||
{
|
||||
protected $config;
|
||||
protected $original;
|
||||
|
@ -19,8 +19,10 @@ use Psr\Log\LoggerInterface;
|
||||
* we can exercise everything without blowing up :-/
|
||||
*
|
||||
* @backupGlobals enabled
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ControllerTest extends CIUnitTestCase
|
||||
final class ControllerTest extends CIUnitTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
use Throwable;
|
||||
|
||||
class BaseConnectionTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseConnectionTest extends CIUnitTestCase
|
||||
{
|
||||
protected $options = [
|
||||
'DSN' => '',
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class BaseQueryTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseQueryTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Builder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class AliasTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class AliasTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\Query;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class BaseTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class BaseTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class CountTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class CountTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Builder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class DeleteTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DeleteTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class DistinctTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DistinctTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class EmptyTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class EmptyTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Database\SQLSRV\Builder as SQLSRVBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class FromTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class FromTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Builder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class GetTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class GetTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class GroupTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class GroupTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\Query;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class InsertTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class InsertTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var MockConnection
|
||||
|
@ -8,7 +8,10 @@ use CodeIgniter\Database\SQLSRV\Builder as SQLSRVBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class JoinTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class JoinTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class LikeTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class LikeTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class LimitTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class LimitTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class OrderTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class OrderTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Builder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class PrefixTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class PrefixTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Builder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class ReplaceTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ReplaceTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -8,7 +8,10 @@ use CodeIgniter\Database\SQLSRV\Builder as SQLSRVBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class SelectTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class SelectTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Database\BaseBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
|
||||
class TruncateTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class TruncateTest extends CIUnitTestCase
|
||||
{
|
||||
protected $db;
|
||||
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
use CodeIgniter\Test\Mock\MockQuery;
|
||||
|
||||
class UpdateTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class UpdateTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var MockConnection
|
||||
|
@ -8,7 +8,10 @@ use CodeIgniter\Test\Mock\MockConnection;
|
||||
use InvalidArgumentException;
|
||||
use stdClass;
|
||||
|
||||
class WhereTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class WhereTest extends CIUnitTestCase
|
||||
{
|
||||
/**
|
||||
* @var MockConnection
|
||||
|
@ -7,7 +7,10 @@ use CodeIgniter\Database\Config;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\ReflectionHelper;
|
||||
|
||||
class ConfigTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ConfigTest extends CIUnitTestCase
|
||||
{
|
||||
use ReflectionHelper;
|
||||
|
||||
|
@ -6,7 +6,10 @@ use CodeIgniter\Test\CIUnitTestCase;
|
||||
use Config\Database;
|
||||
use Faker\Generator;
|
||||
|
||||
class DatabaseSeederTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DatabaseSeederTest extends CIUnitTestCase
|
||||
{
|
||||
public function testInstantiateNoSeedPath()
|
||||
{
|
||||
|
@ -12,8 +12,10 @@ use Config\Services;
|
||||
* show $migrateOnce applies per test case file.
|
||||
*
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseTestCaseMigrationOnce1Test extends CIUnitTestCase
|
||||
final class DatabaseTestCaseMigrationOnce1Test extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -11,8 +11,10 @@ use Config\Services;
|
||||
* show $migrateOnce applies per test case file.
|
||||
*
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseTestCaseMigrationOnce2Test extends CIUnitTestCase
|
||||
final class DatabaseTestCaseMigrationOnce2Test extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -8,8 +8,10 @@ use Config\Services;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseTestCaseTest extends CIUnitTestCase
|
||||
final class DatabaseTestCaseTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class AliasTest extends CIUnitTestCase
|
||||
final class AliasTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -8,8 +8,10 @@ use Exception;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class BadQueryTest extends CIUnitTestCase
|
||||
final class BadQueryTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -10,8 +10,10 @@ use Config\Database;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ConnectTest extends CIUnitTestCase
|
||||
final class ConnectTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class CountTest extends CIUnitTestCase
|
||||
final class CountTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DEBugTest extends CIUnitTestCase
|
||||
final class DEBugTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DatabaseTestTraitCaseTest extends CIUnitTestCase
|
||||
final class DatabaseTestTraitCaseTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -9,8 +9,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DbUtilsTest extends CIUnitTestCase
|
||||
final class DbUtilsTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -8,8 +8,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DeleteTest extends CIUnitTestCase
|
||||
final class DeleteTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class EmptyTest extends CIUnitTestCase
|
||||
final class EmptyTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class EscapeTest extends CIUnitTestCase
|
||||
final class EscapeTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -11,8 +11,10 @@ use Tests\Support\Models\ValidModel;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class FabricatorLiveTest extends CIUnitTestCase
|
||||
final class FabricatorLiveTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -12,8 +12,10 @@ use RuntimeException;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class ForgeTest extends CIUnitTestCase
|
||||
final class ForgeTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -7,8 +7,10 @@ use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
/**
|
||||
* @group DatabaseLive
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class FromTest extends CIUnitTestCase
|
||||
final class FromTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
@ -5,7 +5,10 @@ namespace CodeIgniter\Database\Live;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\DatabaseTestTrait;
|
||||
|
||||
class GetNumRowsTest extends CIUnitTestCase
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class GetNumRowsTest extends CIUnitTestCase
|
||||
{
|
||||
use DatabaseTestTrait;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user