diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:30:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:30:01 +0900 |
| commit | 63e553e213d3d4deccf58e65a65800659189e38c (patch) | |
| tree | 18a650ef7078176b73ce69f2d1317a54ed0554b2 /crates | |
| parent | 66cfb2371b02bd3d66d092d444ac7f8e7a842916 (diff) | |
| download | php-shirabe-63e553e213d3d4deccf58e65a65800659189e38c.tar.gz php-shirabe-63e553e213d3d4deccf58e65a65800659189e38c.tar.zst php-shirabe-63e553e213d3d4deccf58e65a65800659189e38c.zip | |
test(command): port Diagnose/Exec/ClearCache command tests
Stubbed as todo!()/ignored: all need the ApplicationTester/initTempComposer
harness, which is not yet ported.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe/tests/command/clear_cache_command_test.rs | 18 | ||||
| -rw-r--r-- | crates/shirabe/tests/command/diagnose_command_test.rs | 12 | ||||
| -rw-r--r-- | crates/shirabe/tests/command/exec_command_test.rs | 12 | ||||
| -rw-r--r-- | crates/shirabe/tests/command/main.rs | 3 |
4 files changed, 45 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/clear_cache_command_test.rs b/crates/shirabe/tests/command/clear_cache_command_test.rs index 29eb90e..0e03548 100644 --- a/crates/shirabe/tests/command/clear_cache_command_test.rs +++ b/crates/shirabe/tests/command/clear_cache_command_test.rs @@ -1 +1,19 @@ //! ref: composer/tests/Composer/Test/Command/ClearCacheCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_clear_cache_command_success() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_clear_cache_command_with_option_garbage_collection() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_clear_cache_command_with_option_no_cache() { + todo!() +} diff --git a/crates/shirabe/tests/command/diagnose_command_test.rs b/crates/shirabe/tests/command/diagnose_command_test.rs index 0ed56d3..4b5dc9a 100644 --- a/crates/shirabe/tests/command/diagnose_command_test.rs +++ b/crates/shirabe/tests/command/diagnose_command_test.rs @@ -1 +1,13 @@ //! ref: composer/tests/Composer/Test/Command/DiagnoseCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_cmd_fail() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_cmd_success() { + todo!() +} diff --git a/crates/shirabe/tests/command/exec_command_test.rs b/crates/shirabe/tests/command/exec_command_test.rs index 59ac4d6..89963db 100644 --- a/crates/shirabe/tests/command/exec_command_test.rs +++ b/crates/shirabe/tests/command/exec_command_test.rs @@ -1 +1,13 @@ //! ref: composer/tests/Composer/Test/Command/ExecCommandTest.php + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_list_throws_if_no_binaries_exist() { + todo!() +} + +#[test] +#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] +fn test_list() { + todo!() +} diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs index b2774dd..f8aef08 100644 --- a/crates/shirabe/tests/command/main.rs +++ b/crates/shirabe/tests/command/main.rs @@ -1 +1,4 @@ mod about_command_test; +mod clear_cache_command_test; +mod diagnose_command_test; +mod exec_command_test; |
