diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:20:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 04:20:40 +0900 |
| commit | 8e37fd201072439148ab2d179313478b79a38df7 (patch) | |
| tree | 1e702c400da908cacf11297814206a3dbd56ad58 /crates/shirabe/tests/installer | |
| parent | 842bd6718436c3d31dfa99a123c9ade3b09f9027 (diff) | |
| download | php-shirabe-8e37fd201072439148ab2d179313478b79a38df7.tar.gz php-shirabe-8e37fd201072439148ab2d179313478b79a38df7.tar.zst php-shirabe-8e37fd201072439148ab2d179313478b79a38df7.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/installer')
| -rw-r--r-- | crates/shirabe/tests/installer/binary_installer_test.rs | 9 | ||||
| -rw-r--r-- | crates/shirabe/tests/installer/main.rs | 1 |
2 files changed, 10 insertions, 0 deletions
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; |
