aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 04:30:31 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 04:30:31 +0900
commitd02e79c0cddd986a0b2cef878f32bda39cc2f5e9 (patch)
tree43e2256ae239aa005d31bc9505a507b4d303ab17 /crates/shirabe/tests/command
parentd2babe9ed19a40dca2790b3eeaff0b0de9714451 (diff)
downloadphp-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.tar.gz
php-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.tar.zst
php-shirabe-d02e79c0cddd986a0b2cef878f32bda39cc2f5e9.zip
test: port SecurityAdvisoryPoolFilter, downloader/command/app stubs
All ignored/todo!(): the advisory filter parses affectedVersions via a look-around regex; the Hg/Fossil/Perforce/Archive downloaders and RepositoryManager need mocked process/HttpDownloader (curl); the Validate/ Archive commands, ApplicationTest and CompletionFunctionalTest need the ApplicationTester/console harness. setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/command')
-rw-r--r--crates/shirabe/tests/command/archive_command_test.rs18
-rw-r--r--crates/shirabe/tests/command/main.rs2
-rw-r--r--crates/shirabe/tests/command/validate_command_test.rs24
3 files changed, 44 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/archive_command_test.rs b/crates/shirabe/tests/command/archive_command_test.rs
index 79e0a8b..b716a3c 100644
--- a/crates/shirabe/tests/command/archive_command_test.rs
+++ b/crates/shirabe/tests/command/archive_command_test.rs
@@ -1 +1,19 @@
//! ref: composer/tests/Composer/Test/Command/ArchiveCommandTest.php
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_uses_config_from_composer_object() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_uses_config_from_factory_when_composer_is_not_defined() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_uses_config_from_composer_object_with_package_name() {
+ todo!()
+}
diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs
index 9183b33..5e3922c 100644
--- a/crates/shirabe/tests/command/main.rs
+++ b/crates/shirabe/tests/command/main.rs
@@ -1,4 +1,5 @@
mod about_command_test;
+mod archive_command_test;
mod audit_command_test;
mod check_platform_reqs_command_test;
mod clear_cache_command_test;
@@ -9,3 +10,4 @@ mod reinstall_command_test;
mod search_command_test;
mod self_update_command_test;
mod status_command_test;
+mod validate_command_test;
diff --git a/crates/shirabe/tests/command/validate_command_test.rs b/crates/shirabe/tests/command/validate_command_test.rs
index 0d10cc5..26af2ae 100644
--- a/crates/shirabe/tests/command/validate_command_test.rs
+++ b/crates/shirabe/tests/command/validate_command_test.rs
@@ -1 +1,25 @@
//! ref: composer/tests/Composer/Test/Command/ValidateCommandTest.php
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_validate() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_validate_on_file_issues() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_with_composer_lock() {
+ todo!()
+}
+
+#[test]
+#[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"]
+fn test_unaccessible_file() {
+ todo!()
+}