From 8e37fd201072439148ab2d179313478b79a38df7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 04:20:40 +0900 Subject: test: port ArtifactRepositoryTest and BinaryInstallerTest as stubs ArtifactRepository reads archives via ZipArchive/PharData (todo!()); BinaryInstaller installs and executes a real PHP binary and mocks a Package. Both stubbed. setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/installer/binary_installer_test.rs | 9 +++++++++ crates/shirabe/tests/installer/main.rs | 1 + 2 files changed, 10 insertions(+) (limited to 'crates/shirabe/tests/installer') diff --git a/crates/shirabe/tests/installer/binary_installer_test.rs b/crates/shirabe/tests/installer/binary_installer_test.rs index 06a2e91..81df0ea 100644 --- a/crates/shirabe/tests/installer/binary_installer_test.rs +++ b/crates/shirabe/tests/installer/binary_installer_test.rs @@ -1 +1,10 @@ //! ref: composer/tests/Composer/Test/Installer/BinaryInstallerTest.php + +// This installs a PHP binary and then executes it via ProcessExecutor, asserting the +// program's output. It needs a real PHP runtime, the binary-proxy generation, and a +// mocked Package's getBinaries(), none of which are available here. +#[test] +#[ignore = "installs and executes a PHP binary via ProcessExecutor (needs a real PHP runtime and binary proxies) and mocks a Package"] +fn test_install_and_exec_binary_with_full_compat() { + todo!() +} diff --git a/crates/shirabe/tests/installer/main.rs b/crates/shirabe/tests/installer/main.rs index f28341e..de72ceb 100644 --- a/crates/shirabe/tests/installer/main.rs +++ b/crates/shirabe/tests/installer/main.rs @@ -1,5 +1,6 @@ #[path = "../common/test_case.rs"] mod test_case; +mod binary_installer_test; mod installer_event_test; mod metapackage_installer_test; -- cgit v1.3.1