Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 30, 2024
1 parent b3b0b46 commit e549c16
Show file tree
Hide file tree
Showing 28 changed files with 54 additions and 53 deletions.
4 changes: 2 additions & 2 deletions tests/Actions/CompleteConsoleCommandArgumentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Actions;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class CompleteConsoleCommandArgumentsTest extends TestCase
class CompleteConsoleCommandArgumentsTest extends ConsoleIntegrationTestCase
{
public function test_arguments_are_printed(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Actions/ExecuteConsoleCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Actions;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class ExecuteConsoleCommandTest extends TestCase
class ExecuteConsoleCommandTest extends ConsoleIntegrationTestCase
{
public function test_command_specific_middleware(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/CompleteCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Commands;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class CompleteCommandTest extends TestCase
class CompleteCommandTest extends ConsoleIntegrationTestCase
{
public function test_complete_commands(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/RunTaskCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Commands;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class RunTaskCommandTest extends TestCase
class RunTaskCommandTest extends ConsoleIntegrationTestCase
{
public function test_run_task()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/QuestionComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Components;

use Tempest\Console\Components\Interactive\SingleChoiceComponent;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class QuestionComponentTest extends TestCase
class QuestionComponentTest extends ConsoleIntegrationTestCase
{
public function test_question_component(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/SearchComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Tempest\Console\Components\Interactive\SearchComponent;
use Tempest\Console\Key;
use Tempest\Console\Point;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class SearchComponentTest extends TestCase
class SearchComponentTest extends ConsoleIntegrationTestCase
{
public function test_search_component(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticConfirmComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

use Tempest\Console\Console;
use Tempest\Console\Key;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticConfirmComponentTest extends TestCase
class StaticConfirmComponentTest extends ConsoleIntegrationTestCase
{
public function test_confirm(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticMultipleChoiceComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Components\Static;

use Tempest\Console\Console;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticMultipleChoiceComponentTest extends TestCase
class StaticMultipleChoiceComponentTest extends ConsoleIntegrationTestCase
{
public function test_ask(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticProgressBarComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Components\Static;

use Tempest\Console\Console;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticProgressBarComponentTest extends TestCase
class StaticProgressBarComponentTest extends ConsoleIntegrationTestCase
{
public function test_progress_bar(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticSearchComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Components\Static;

use Tempest\Console\Console;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticSearchComponentTest extends TestCase
class StaticSearchComponentTest extends ConsoleIntegrationTestCase
{
public function test_search_component(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticSingleChoiceComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

use Tempest\Console\Console;
use Tempest\Console\Key;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticSingleChoiceComponentTest extends TestCase
class StaticSingleChoiceComponentTest extends ConsoleIntegrationTestCase
{
public function test_with_options(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/Static/StaticTextBoxComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Components\Static;

use Tempest\Console\Console;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class StaticTextBoxComponentTest extends TestCase
class StaticTextBoxComponentTest extends ConsoleIntegrationTestCase
{
public function test_text_box(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/TextBoxComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

use Tempest\Console\Components\Interactive\TextBoxComponent;
use Tempest\Console\Point;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class TextBoxComponentTest extends TestCase
class TextBoxComponentTest extends ConsoleIntegrationTestCase
{
public function test_text_question_component(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ConsoleArgumentBagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @internal
* @small
*/
final class ConsoleArgumentBagTest extends TestCase
final class ConsoleArgumentBagTest extends ConsoleIntegrationTestCase
{
public function test_argument_bag_works(): void
{
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase.php → tests/ConsoleIntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Tests\Tempest\Console;

use PHPUnit\Framework\TestCase;
use Tempest\AppConfig;
use Tempest\Application;
use Tempest\Console\ConsoleApplication;
Expand All @@ -19,7 +20,7 @@
* @internal
* @small
*/
class TestCase extends \PHPUnit\Framework\TestCase
class ConsoleIntegrationTestCase extends TestCase
{
protected Container $container;
protected ConsoleTester $console;
Expand Down
4 changes: 2 additions & 2 deletions tests/Exceptions/CommandNotFoundExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Exceptions;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class CommandNotFoundExceptionTest extends TestCase
class CommandNotFoundExceptionTest extends ConsoleIntegrationTestCase
{
public function test_console_exception_handler(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Exceptions/ConsoleExceptionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use Tempest\Console\Input\UnsupportedInputBuffer;
use Tempest\Console\Output\MemoryOutputBuffer;
use Tempest\Highlight\Highlighter;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class ConsoleExceptionHandlerTest extends TestCase
class ConsoleExceptionHandlerTest extends ConsoleIntegrationTestCase
{
public function test_render_console_exception(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixtures/CommandAliasesWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Fixtures;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
final class CommandAliasesWork extends TestCase
final class CommandAliasesWork extends ConsoleIntegrationTestCase
{
public function test_aliases_work()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Middleware/CautionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

use Tempest\AppConfig;
use Tempest\Environment;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class CautionMiddlewareTest extends TestCase
class CautionMiddlewareTest extends ConsoleIntegrationTestCase
{
public function test_in_local(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Middleware/ForceMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Middleware;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class ForceMiddlewareTest extends TestCase
class ForceMiddlewareTest extends ConsoleIntegrationTestCase
{
public function test_force(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Middleware/InvalidCommandMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace Tests\Tempest\Console\Middleware;

use Tests\Tempest\Console\ConsoleIntegrationTestCase;
use Tests\Tempest\Console\Fixtures\ComplexCommand;
use Tests\Tempest\Console\TestCase;

/**
* @internal
* @small
*/
class InvalidCommandMiddlewareTest extends TestCase
class InvalidCommandMiddlewareTest extends ConsoleIntegrationTestCase
{
public function test_provide_missing_input(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Middleware/OverviewMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Tests\Tempest\Console\Middleware;

use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
class OverviewMiddlewareTest extends TestCase
class OverviewMiddlewareTest extends ConsoleIntegrationTestCase
{
public function test_overview(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/RenderConsoleCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @internal
* @small
*/
class RenderConsoleCommandTest extends TestCase
class RenderConsoleCommandTest extends ConsoleIntegrationTestCase
{
public function test_render()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Scheduler/GenericSchedulerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use Tempest\Console\Scheduler\GenericScheduler;
use Tempest\Console\Scheduler\NullShellExecutor;
use Tempest\Console\Scheduler\SchedulerConfig;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
final class GenericSchedulerTest extends TestCase
final class GenericSchedulerTest extends ConsoleIntegrationTestCase
{
protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Scheduler/IntervalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
namespace Tests\Tempest\Console\Scheduler;

use Tempest\Console\Scheduler\Interval;
use Tests\Tempest\Console\TestCase;
use Tests\Tempest\Console\ConsoleIntegrationTestCase;

/**
* @internal
* @small
*/
final class IntervalTest extends TestCase
final class IntervalTest extends ConsoleIntegrationTestCase
{
public function test_interval_with_seconds_returns_correct_in_seconds()
{
Expand Down
Loading

0 comments on commit e549c16

Please sign in to comment.