aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/installed_versions_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 05:09:56 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 05:09:56 +0900
commit25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0 (patch)
tree0974de4f5e7a19415f2bcda9adc34cb95263b2e9 /crates/shirabe/tests/installed_versions_test.rs
parentb07f3a9f51d7ce5ea8ee4dc45da7fe9a55b7f1d4 (diff)
downloadphp-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.gz
php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.zst
php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.zip
test: port downloader/installer/io/json/event-dispatcher/functional stubs
All ignored: these mock IO/HttpDownloader (curl)/ProcessExecutor/installers, use ZipArchive/JsonManipulator todo!()s, need Symfony console or schema validation, reflect into ClassLoader, or run end-to-end install/functional fixtures. Wires up the event_dispatcher test target. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/installed_versions_test.rs')
-rw-r--r--crates/shirabe/tests/installed_versions_test.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/crates/shirabe/tests/installed_versions_test.rs b/crates/shirabe/tests/installed_versions_test.rs
index 3173559..1357fd4 100644
--- a/crates/shirabe/tests/installed_versions_test.rs
+++ b/crates/shirabe/tests/installed_versions_test.rs
@@ -1 +1,28 @@
//! ref: composer/tests/Composer/Test/InstalledVersionsTest.php
+
+// setUpBeforeClass reflects into ClassLoader::registeredLoaders and the cases load
+// installed.php fixtures via InstalledVersions::reload; the reflection and fixture loading
+// are not ported.
+macro_rules! stub {
+ ($name:ident) => {
+ #[test]
+ #[ignore = "needs reflection into ClassLoader::registeredLoaders and installed.php fixtures (not ported)"]
+ fn $name() {
+ todo!()
+ }
+ };
+}
+
+stub!(test_get_installed_packages);
+stub!(test_is_installed);
+stub!(test_satisfies);
+stub!(test_get_version_ranges);
+stub!(test_get_version);
+stub!(test_get_pretty_version);
+stub!(test_get_version_out_of_bounds);
+stub!(test_get_root_package);
+stub!(test_get_raw_data);
+stub!(test_get_reference);
+stub!(test_get_installed_packages_by_type);
+stub!(test_get_install_path);
+stub!(test_with_class_loader_loaded);