Skip to content

Commit 849266c

Browse files
committed
move legacy command fixtures
1 parent fea4741 commit 849266c

16 files changed

Lines changed: 24 additions & 24 deletions

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
__DIR__ . '/system/ThirdParty',
8484
__DIR__ . '/tests/system/Config/fixtures',
8585
__DIR__ . '/tests/system/Filters/fixtures',
86-
__DIR__ . '/tests/_support/Commands/Foobar.php',
86+
__DIR__ . '/tests/_support/Commands/Legacy/Foobar.php',
8787
__DIR__ . '/tests/_support/View',
8888
__DIR__ . '/tests/system/View/Views',
8989

tests/_support/Commands/AbstractInfo.php renamed to tests/_support/Commands/Legacy/AbstractInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use CodeIgniter\CLI\BaseCommand;
1717

tests/_support/Commands/AppInfo.php renamed to tests/_support/Commands/Legacy/AppInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use CodeIgniter\CLI\BaseCommand;
1717
use CodeIgniter\CLI\CLI;
@@ -50,6 +50,6 @@ public function bomb(): int
5050

5151
public function helpMe(): int
5252
{
53-
return $this->call('help');
53+
return $this->call('help:legacy');
5454
}
5555
}

tests/_support/Commands/DestructiveCommand.php renamed to tests/_support/Commands/Legacy/DestructiveCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use RuntimeException;
1717

tests/_support/Commands/InvalidCommand.php renamed to tests/_support/Commands/Legacy/InvalidCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use CodeIgniter\CLI\BaseCommand;
1717
use CodeIgniter\CLI\CLI;
@@ -26,7 +26,7 @@ class InvalidCommand extends BaseCommand
2626

2727
public function __construct()
2828
{
29-
throw new ReflectionException();
29+
throw new ReflectionException('This command is invalid and should not be instantiated.');
3030
}
3131

3232
public function run(array $params): int

tests/_support/Commands/LanguageCommand.php renamed to tests/_support/Commands/Legacy/LanguageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use CodeIgniter\CLI\BaseCommand;
1717
use CodeIgniter\CLI\GeneratorTrait;

tests/_support/Commands/SignalCommand.php renamed to tests/_support/Commands/Legacy/SignalCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
use CodeIgniter\CLI\BaseCommand;
1717
use CodeIgniter\CLI\SignalTrait;

tests/_support/Commands/SignalCommandNoPcntl.php renamed to tests/_support/Commands/Legacy/SignalCommandNoPcntl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
/**
1717
* Mock command that simulates missing PCNTL extension

tests/_support/Commands/SignalCommandNoPosix.php renamed to tests/_support/Commands/Legacy/SignalCommandNoPosix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* the LICENSE file that was distributed with this source code.
1212
*/
1313

14-
namespace Tests\Support\Commands;
14+
namespace Tests\Support\Commands\Legacy;
1515

1616
/**
1717
* Mock command that simulates missing POSIX extension

0 commit comments

Comments
 (0)