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 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/shirabe/tests/installer/binary_installer_test.rs') 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!() +} -- cgit v1.3.1