From 4b5d5569b1b92d6b82fd2d3f06f4b0ea1f47182f Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Thu, 9 Apr 2026 20:18:39 +0800 Subject: [PATCH] test: group commands tests similar to `system/Commands/` --- tests/system/Commands/{ => Cache}/ClearCacheTest.php | 2 +- tests/system/Commands/{ => Cache}/InfoCacheTest.php | 2 +- .../Commands/{ => Database}/CreateDatabaseTest.php | 2 +- .../Commands/{ => Database}/DatabaseCommandsTest.php | 2 +- .../{ => Database}/MigrationIntegrationTest.php | 4 +++- .../Commands/{ => Encryption}/GenerateKeyTest.php | 2 +- .../Commands/{ => Generators}/CellGeneratorTest.php | 2 +- .../Commands/{ => Generators}/CommandGeneratorTest.php | 2 +- .../Commands/{ => Generators}/ConfigGeneratorTest.php | 2 +- .../{ => Generators}/ControllerGeneratorTest.php | 2 +- .../Commands/{ => Generators}/EntityGeneratorTest.php | 2 +- .../Commands/{ => Generators}/FilterGeneratorTest.php | 2 +- .../Commands/{ => Generators}/GeneratorsTest.php | 2 +- .../{ => Generators}/MigrationGeneratorTest.php | 2 +- .../Commands/{ => Generators}/ModelGeneratorTest.php | 2 +- .../{ => Generators}/ScaffoldGeneratorTest.php | 2 +- .../Commands/{ => Generators}/SeederGeneratorTest.php | 2 +- .../Commands/{ => Generators}/TestGeneratorTest.php | 2 +- .../{ => Generators}/TransformerGeneratorTest.php | 2 +- .../{ => Generators}/ValidationGeneratorTest.php | 2 +- .../Commands/{ => Housekeeping}/ClearDebugbarTest.php | 2 +- .../Commands/{ => Housekeeping}/ClearLogsTest.php | 2 +- .../{ => Utilities}/EnvironmentCommandTest.php | 2 +- .../Commands/{ => Utilities}/FilterCheckTest.php | 2 +- .../Commands/{ => Utilities}/PublishCommandTest.php | 2 +- tests/system/Commands/{ => Utilities}/RoutesTest.php | 2 +- .../Commands/{ => Worker}/WorkerCommandsTest.php | 2 +- utils/phpstan-baseline/argument.type.neon | 2 +- utils/phpstan-baseline/ternary.shortNotAllowed.neon | 10 +++++----- 29 files changed, 35 insertions(+), 33 deletions(-) rename tests/system/Commands/{ => Cache}/ClearCacheTest.php (97%) rename tests/system/Commands/{ => Cache}/InfoCacheTest.php (98%) rename tests/system/Commands/{ => Database}/CreateDatabaseTest.php (98%) rename tests/system/Commands/{ => Database}/DatabaseCommandsTest.php (98%) rename tests/system/Commands/{ => Database}/MigrationIntegrationTest.php (94%) rename tests/system/Commands/{ => Encryption}/GenerateKeyTest.php (99%) rename tests/system/Commands/{ => Generators}/CellGeneratorTest.php (98%) rename tests/system/Commands/{ => Generators}/CommandGeneratorTest.php (99%) rename tests/system/Commands/{ => Generators}/ConfigGeneratorTest.php (96%) rename tests/system/Commands/{ => Generators}/ControllerGeneratorTest.php (98%) rename tests/system/Commands/{ => Generators}/EntityGeneratorTest.php (96%) rename tests/system/Commands/{ => Generators}/FilterGeneratorTest.php (96%) rename tests/system/Commands/{ => Generators}/GeneratorsTest.php (98%) rename tests/system/Commands/{ => Generators}/MigrationGeneratorTest.php (97%) rename tests/system/Commands/{ => Generators}/ModelGeneratorTest.php (99%) rename tests/system/Commands/{ => Generators}/ScaffoldGeneratorTest.php (99%) rename tests/system/Commands/{ => Generators}/SeederGeneratorTest.php (97%) rename tests/system/Commands/{ => Generators}/TestGeneratorTest.php (98%) rename tests/system/Commands/{ => Generators}/TransformerGeneratorTest.php (98%) rename tests/system/Commands/{ => Generators}/ValidationGeneratorTest.php (96%) rename tests/system/Commands/{ => Housekeeping}/ClearDebugbarTest.php (97%) rename tests/system/Commands/{ => Housekeeping}/ClearLogsTest.php (99%) rename tests/system/Commands/{ => Utilities}/EnvironmentCommandTest.php (98%) rename tests/system/Commands/{ => Utilities}/FilterCheckTest.php (97%) rename tests/system/Commands/{ => Utilities}/PublishCommandTest.php (96%) rename tests/system/Commands/{ => Utilities}/RoutesTest.php (99%) rename tests/system/Commands/{ => Worker}/WorkerCommandsTest.php (99%) diff --git a/tests/system/Commands/ClearCacheTest.php b/tests/system/Commands/Cache/ClearCacheTest.php similarity index 97% rename from tests/system/Commands/ClearCacheTest.php rename to tests/system/Commands/Cache/ClearCacheTest.php index e27978e40919..fdafe77ecf27 100644 --- a/tests/system/Commands/ClearCacheTest.php +++ b/tests/system/Commands/Cache/ClearCacheTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Cache; use CodeIgniter\Cache\CacheFactory; use CodeIgniter\Test\CIUnitTestCase; diff --git a/tests/system/Commands/InfoCacheTest.php b/tests/system/Commands/Cache/InfoCacheTest.php similarity index 98% rename from tests/system/Commands/InfoCacheTest.php rename to tests/system/Commands/Cache/InfoCacheTest.php index e8cc409356f5..44aa389338cc 100644 --- a/tests/system/Commands/InfoCacheTest.php +++ b/tests/system/Commands/Cache/InfoCacheTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Cache; use CodeIgniter\Cache\CacheFactory; use CodeIgniter\Test\CIUnitTestCase; diff --git a/tests/system/Commands/CreateDatabaseTest.php b/tests/system/Commands/Database/CreateDatabaseTest.php similarity index 98% rename from tests/system/Commands/CreateDatabaseTest.php rename to tests/system/Commands/Database/CreateDatabaseTest.php index a7e0fe11638f..ab7da0275f6d 100644 --- a/tests/system/Commands/CreateDatabaseTest.php +++ b/tests/system/Commands/Database/CreateDatabaseTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Database; use CodeIgniter\Database\BaseConnection; use CodeIgniter\Database\OCI8\Connection as OCI8Connection; diff --git a/tests/system/Commands/DatabaseCommandsTest.php b/tests/system/Commands/Database/DatabaseCommandsTest.php similarity index 98% rename from tests/system/Commands/DatabaseCommandsTest.php rename to tests/system/Commands/Database/DatabaseCommandsTest.php index 02d6e6b38963..b0695f0a6427 100644 --- a/tests/system/Commands/DatabaseCommandsTest.php +++ b/tests/system/Commands/Database/DatabaseCommandsTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Database; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/MigrationIntegrationTest.php b/tests/system/Commands/Database/MigrationIntegrationTest.php similarity index 94% rename from tests/system/Commands/MigrationIntegrationTest.php rename to tests/system/Commands/Database/MigrationIntegrationTest.php index 12869f9092c6..9362e6f043a4 100644 --- a/tests/system/Commands/MigrationIntegrationTest.php +++ b/tests/system/Commands/Database/MigrationIntegrationTest.php @@ -11,16 +11,18 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Database; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; use PHPUnit\Framework\Attributes\Group; +use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses; /** * @internal */ #[Group('DatabaseLive')] +#[RunTestsInSeparateProcesses] final class MigrationIntegrationTest extends CIUnitTestCase { use StreamFilterTrait; diff --git a/tests/system/Commands/GenerateKeyTest.php b/tests/system/Commands/Encryption/GenerateKeyTest.php similarity index 99% rename from tests/system/Commands/GenerateKeyTest.php rename to tests/system/Commands/Encryption/GenerateKeyTest.php index 6ed0d6c94b93..a4fb452fd5a2 100644 --- a/tests/system/Commands/GenerateKeyTest.php +++ b/tests/system/Commands/Encryption/GenerateKeyTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Encryption; use CodeIgniter\Config\Services; use CodeIgniter\Superglobals; diff --git a/tests/system/Commands/CellGeneratorTest.php b/tests/system/Commands/Generators/CellGeneratorTest.php similarity index 98% rename from tests/system/Commands/CellGeneratorTest.php rename to tests/system/Commands/Generators/CellGeneratorTest.php index 31ec6dc3921e..3412246966cd 100644 --- a/tests/system/Commands/CellGeneratorTest.php +++ b/tests/system/Commands/Generators/CellGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/CommandGeneratorTest.php b/tests/system/Commands/Generators/CommandGeneratorTest.php similarity index 99% rename from tests/system/Commands/CommandGeneratorTest.php rename to tests/system/Commands/Generators/CommandGeneratorTest.php index d485d6e4f063..c2606051d57b 100644 --- a/tests/system/Commands/CommandGeneratorTest.php +++ b/tests/system/Commands/Generators/CommandGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ConfigGeneratorTest.php b/tests/system/Commands/Generators/ConfigGeneratorTest.php similarity index 96% rename from tests/system/Commands/ConfigGeneratorTest.php rename to tests/system/Commands/Generators/ConfigGeneratorTest.php index ab4914914719..473efff9a3a0 100644 --- a/tests/system/Commands/ConfigGeneratorTest.php +++ b/tests/system/Commands/Generators/ConfigGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ControllerGeneratorTest.php b/tests/system/Commands/Generators/ControllerGeneratorTest.php similarity index 98% rename from tests/system/Commands/ControllerGeneratorTest.php rename to tests/system/Commands/Generators/ControllerGeneratorTest.php index dc8293bb3997..e1c77bcb6d5d 100644 --- a/tests/system/Commands/ControllerGeneratorTest.php +++ b/tests/system/Commands/Generators/ControllerGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/EntityGeneratorTest.php b/tests/system/Commands/Generators/EntityGeneratorTest.php similarity index 96% rename from tests/system/Commands/EntityGeneratorTest.php rename to tests/system/Commands/Generators/EntityGeneratorTest.php index 1e764add9cec..f8dce1c17608 100644 --- a/tests/system/Commands/EntityGeneratorTest.php +++ b/tests/system/Commands/Generators/EntityGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/FilterGeneratorTest.php b/tests/system/Commands/Generators/FilterGeneratorTest.php similarity index 96% rename from tests/system/Commands/FilterGeneratorTest.php rename to tests/system/Commands/Generators/FilterGeneratorTest.php index b336387d3ab4..a1144c1bc31d 100644 --- a/tests/system/Commands/FilterGeneratorTest.php +++ b/tests/system/Commands/Generators/FilterGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/GeneratorsTest.php b/tests/system/Commands/Generators/GeneratorsTest.php similarity index 98% rename from tests/system/Commands/GeneratorsTest.php rename to tests/system/Commands/Generators/GeneratorsTest.php index f72ceabc710c..bb031b286f94 100644 --- a/tests/system/Commands/GeneratorsTest.php +++ b/tests/system/Commands/Generators/GeneratorsTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/MigrationGeneratorTest.php b/tests/system/Commands/Generators/MigrationGeneratorTest.php similarity index 97% rename from tests/system/Commands/MigrationGeneratorTest.php rename to tests/system/Commands/Generators/MigrationGeneratorTest.php index 0f999d638789..c4670019a422 100644 --- a/tests/system/Commands/MigrationGeneratorTest.php +++ b/tests/system/Commands/Generators/MigrationGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ModelGeneratorTest.php b/tests/system/Commands/Generators/ModelGeneratorTest.php similarity index 99% rename from tests/system/Commands/ModelGeneratorTest.php rename to tests/system/Commands/Generators/ModelGeneratorTest.php index 65596958606c..520bbbdc7a3b 100644 --- a/tests/system/Commands/ModelGeneratorTest.php +++ b/tests/system/Commands/Generators/ModelGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ScaffoldGeneratorTest.php b/tests/system/Commands/Generators/ScaffoldGeneratorTest.php similarity index 99% rename from tests/system/Commands/ScaffoldGeneratorTest.php rename to tests/system/Commands/Generators/ScaffoldGeneratorTest.php index fe99f2c38ccd..341dac0f8573 100644 --- a/tests/system/Commands/ScaffoldGeneratorTest.php +++ b/tests/system/Commands/Generators/ScaffoldGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/SeederGeneratorTest.php b/tests/system/Commands/Generators/SeederGeneratorTest.php similarity index 97% rename from tests/system/Commands/SeederGeneratorTest.php rename to tests/system/Commands/Generators/SeederGeneratorTest.php index b8f504489c5b..c455576876bb 100644 --- a/tests/system/Commands/SeederGeneratorTest.php +++ b/tests/system/Commands/Generators/SeederGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/TestGeneratorTest.php b/tests/system/Commands/Generators/TestGeneratorTest.php similarity index 98% rename from tests/system/Commands/TestGeneratorTest.php rename to tests/system/Commands/Generators/TestGeneratorTest.php index b67c136a4009..71225847cfce 100644 --- a/tests/system/Commands/TestGeneratorTest.php +++ b/tests/system/Commands/Generators/TestGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\CLI\CLI; use CodeIgniter\Test\CIUnitTestCase; diff --git a/tests/system/Commands/TransformerGeneratorTest.php b/tests/system/Commands/Generators/TransformerGeneratorTest.php similarity index 98% rename from tests/system/Commands/TransformerGeneratorTest.php rename to tests/system/Commands/Generators/TransformerGeneratorTest.php index 588bf3243d68..2b007d590aaa 100644 --- a/tests/system/Commands/TransformerGeneratorTest.php +++ b/tests/system/Commands/Generators/TransformerGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ValidationGeneratorTest.php b/tests/system/Commands/Generators/ValidationGeneratorTest.php similarity index 96% rename from tests/system/Commands/ValidationGeneratorTest.php rename to tests/system/Commands/Generators/ValidationGeneratorTest.php index 0bcbcdec12e7..6779e9a6d4d5 100644 --- a/tests/system/Commands/ValidationGeneratorTest.php +++ b/tests/system/Commands/Generators/ValidationGeneratorTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Generators; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ClearDebugbarTest.php b/tests/system/Commands/Housekeeping/ClearDebugbarTest.php similarity index 97% rename from tests/system/Commands/ClearDebugbarTest.php rename to tests/system/Commands/Housekeeping/ClearDebugbarTest.php index b3c2de18c394..9b5a2e12a13b 100644 --- a/tests/system/Commands/ClearDebugbarTest.php +++ b/tests/system/Commands/Housekeeping/ClearDebugbarTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Housekeeping; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/ClearLogsTest.php b/tests/system/Commands/Housekeeping/ClearLogsTest.php similarity index 99% rename from tests/system/Commands/ClearLogsTest.php rename to tests/system/Commands/Housekeeping/ClearLogsTest.php index b2c4c8b0664c..70406956d66e 100644 --- a/tests/system/Commands/ClearLogsTest.php +++ b/tests/system/Commands/Housekeeping/ClearLogsTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Housekeeping; use CodeIgniter\CLI\CLI; use CodeIgniter\Test\CIUnitTestCase; diff --git a/tests/system/Commands/EnvironmentCommandTest.php b/tests/system/Commands/Utilities/EnvironmentCommandTest.php similarity index 98% rename from tests/system/Commands/EnvironmentCommandTest.php rename to tests/system/Commands/Utilities/EnvironmentCommandTest.php index 597805ee8a38..ca5236f5ff5b 100644 --- a/tests/system/Commands/EnvironmentCommandTest.php +++ b/tests/system/Commands/Utilities/EnvironmentCommandTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Utilities; use CodeIgniter\Config\Services; use CodeIgniter\Superglobals; diff --git a/tests/system/Commands/FilterCheckTest.php b/tests/system/Commands/Utilities/FilterCheckTest.php similarity index 97% rename from tests/system/Commands/FilterCheckTest.php rename to tests/system/Commands/Utilities/FilterCheckTest.php index c6644e02e94e..b2f0d3b8144d 100644 --- a/tests/system/Commands/FilterCheckTest.php +++ b/tests/system/Commands/Utilities/FilterCheckTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Utilities; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/PublishCommandTest.php b/tests/system/Commands/Utilities/PublishCommandTest.php similarity index 96% rename from tests/system/Commands/PublishCommandTest.php rename to tests/system/Commands/Utilities/PublishCommandTest.php index 0cd2605aaa1e..ad35865367ec 100644 --- a/tests/system/Commands/PublishCommandTest.php +++ b/tests/system/Commands/Utilities/PublishCommandTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Utilities; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/tests/system/Commands/RoutesTest.php b/tests/system/Commands/Utilities/RoutesTest.php similarity index 99% rename from tests/system/Commands/RoutesTest.php rename to tests/system/Commands/Utilities/RoutesTest.php index a28c0cc02e1a..bf1789135387 100644 --- a/tests/system/Commands/RoutesTest.php +++ b/tests/system/Commands/Utilities/RoutesTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Utilities; use CodeIgniter\Router\RouteCollection; use CodeIgniter\Test\CIUnitTestCase; diff --git a/tests/system/Commands/WorkerCommandsTest.php b/tests/system/Commands/Worker/WorkerCommandsTest.php similarity index 99% rename from tests/system/Commands/WorkerCommandsTest.php rename to tests/system/Commands/Worker/WorkerCommandsTest.php index be0880f9157d..ff570356fdcf 100644 --- a/tests/system/Commands/WorkerCommandsTest.php +++ b/tests/system/Commands/Worker/WorkerCommandsTest.php @@ -11,7 +11,7 @@ * the LICENSE file that was distributed with this source code. */ -namespace CodeIgniter\Commands; +namespace CodeIgniter\Commands\Worker; use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\StreamFilterTrait; diff --git a/utils/phpstan-baseline/argument.type.neon b/utils/phpstan-baseline/argument.type.neon index 3bb95bae65fb..4a1fe1aed2ef 100644 --- a/utils/phpstan-baseline/argument.type.neon +++ b/utils/phpstan-baseline/argument.type.neon @@ -50,7 +50,7 @@ parameters: - message: '#^Parameter \#2 \$mock of static method CodeIgniter\\Config\\BaseService\:\:injectMock\(\) expects object, null given\.$#' count: 4 - path: ../../tests/system/Commands/RoutesTest.php + path: ../../tests/system/Commands/Utilities/RoutesTest.php - message: '#^Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) expects class\-string\, string given\.$#' diff --git a/utils/phpstan-baseline/ternary.shortNotAllowed.neon b/utils/phpstan-baseline/ternary.shortNotAllowed.neon index 0f831fde0a46..25ab1dce60e0 100644 --- a/utils/phpstan-baseline/ternary.shortNotAllowed.neon +++ b/utils/phpstan-baseline/ternary.shortNotAllowed.neon @@ -85,27 +85,27 @@ parameters: - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' count: 1 - path: ../../tests/system/Commands/CellGeneratorTest.php + path: ../../tests/system/Commands/Generators/CellGeneratorTest.php - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' count: 1 - path: ../../tests/system/Commands/CommandGeneratorTest.php + path: ../../tests/system/Commands/Generators/CommandGeneratorTest.php - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' count: 1 - path: ../../tests/system/Commands/ControllerGeneratorTest.php + path: ../../tests/system/Commands/Generators/ControllerGeneratorTest.php - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' count: 1 - path: ../../tests/system/Commands/ModelGeneratorTest.php + path: ../../tests/system/Commands/Generators/ModelGeneratorTest.php - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#' count: 1 - path: ../../tests/system/Commands/ScaffoldGeneratorTest.php + path: ../../tests/system/Commands/Generators/ScaffoldGeneratorTest.php - message: '#^Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.$#'