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) --- .../tests/repository/artifact_repository_test.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'crates/shirabe/tests/repository/artifact_repository_test.rs') diff --git a/crates/shirabe/tests/repository/artifact_repository_test.rs b/crates/shirabe/tests/repository/artifact_repository_test.rs index cda2044..58cb888 100644 --- a/crates/shirabe/tests/repository/artifact_repository_test.rs +++ b/crates/shirabe/tests/repository/artifact_repository_test.rs @@ -1 +1,22 @@ //! ref: composer/tests/Composer/Test/Repository/ArtifactRepositoryTest.php + +// ArtifactRepository::getPackages scans the fixture directory and opens each archive via +// ZipArchive / PharData, both of which are todo!() in the php-shim. + +#[test] +#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"] +fn test_extracts_configs_from_zip_archives() { + todo!() +} + +#[test] +#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"] +fn test_absolute_repo_url_creates_absolute_url_packages() { + todo!() +} + +#[test] +#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"] +fn test_relative_repo_url_creates_relative_url_packages() { + todo!() +} -- cgit v1.3.1