aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command/show_command_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 04:45:26 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 04:45:26 +0900
commitb55b030fb6a9c0b31a2ba16f708358e37949a323 (patch)
treefe1736ef61848bb8de9fecacf635f7c1e9db7498 /crates/shirabe/tests/command/show_command_test.rs
parenta5b5366492d87ebf3fd0b1aaf77c15dfa978ae95 (diff)
downloadphp-shirabe-b55b030fb6a9c0b31a2ba16f708358e37949a323.tar.gz
php-shirabe-b55b030fb6a9c0b31a2ba16f708358e37949a323.tar.zst
php-shirabe-b55b030fb6a9c0b31a2ba16f708358e37949a323.zip
test(command): port remaining command tests as ApplicationTester stubs
Adds Base/Bump/Config/DumpAutoload/Fund/Global/Init/Install/Licenses/Remove/ Repository/Require/RunScript/Show/Suggests/Update command tests. All ignored: they need the ApplicationTester/initTempComposer harness (Init also reflects into protected helpers). setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/command/show_command_test.rs')
-rw-r--r--crates/shirabe/tests/command/show_command_test.rs34
1 files changed, 34 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/show_command_test.rs b/crates/shirabe/tests/command/show_command_test.rs
index 932dc3a..6c2cf13 100644
--- a/crates/shirabe/tests/command/show_command_test.rs
+++ b/crates/shirabe/tests/command/show_command_test.rs
@@ -1 +1,35 @@
//! ref: composer/tests/Composer/Test/Command/ShowCommandTest.php
+
+macro_rules! stub {
+ ($name:ident) => {
+ #[test]
+ #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+ fn $name() {
+ todo!()
+ }
+ };
+}
+
+stub!(test_show);
+stub!(test_outdated_filters_according_to_platform_reqs_and_warns);
+stub!(test_outdated_filters_according_to_platform_reqs_without_warning_for_higher_versions);
+stub!(test_show_direct_with_name_does_not_show_transient_dependencies);
+stub!(test_show_direct_with_name_only_shows_direct_dependents);
+stub!(test_show_platform_only_shows_platform_packages);
+stub!(test_show_platform_works_without_composer_json);
+stub!(test_outdated_with_zero_major);
+stub!(test_show_all_shows_all_sections);
+stub!(test_locked_requires_valid_lock_file);
+stub!(test_locked_shows_all_locked);
+stub!(test_invalid_option_combinations);
+stub!(test_ignored_option_combinations);
+stub!(test_self_and_name_only);
+stub!(test_self_and_package_combination);
+stub!(test_self);
+stub!(test_not_installed_error);
+stub!(test_no_dev_option);
+stub!(test_package_filter);
+stub!(test_not_existing_package);
+stub!(test_not_existing_package_with_working_dir);
+stub!(test_specific_package_and_tree);
+stub!(test_name_only_prints_no_trailing_whitespace);