From 25d368d3edf77fe9833c7d2cdefc6242cfec8ebe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 03:49:40 +0900 Subject: test: port TlsHelperTest and HhvmDetectorTest as stubs TlsHelper is not ported; the HhvmDetector cases are always skipped (no HHVM, no hhvm executable). All ignored/todo!(). setUp not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/platform/hhvm_detector_test.rs | 12 ++++++++++++ crates/shirabe/tests/platform/main.rs | 1 + crates/shirabe/tests/util/main.rs | 1 + crates/shirabe/tests/util/tls_helper_test.rs | 12 ++++++++++++ 4 files changed, 26 insertions(+) (limited to 'crates') diff --git a/crates/shirabe/tests/platform/hhvm_detector_test.rs b/crates/shirabe/tests/platform/hhvm_detector_test.rs index 11cb28c..8c420e5 100644 --- a/crates/shirabe/tests/platform/hhvm_detector_test.rs +++ b/crates/shirabe/tests/platform/hhvm_detector_test.rs @@ -1 +1,13 @@ //! ref: composer/tests/Composer/Test/Platform/HhvmDetectorTest.php + +#[test] +#[ignore = "skipped unless running under HHVM (HHVM_VERSION_ID defined), which never holds here"] +fn test_hhvm_version_when_executing_in_hhvm() { + todo!() +} + +#[test] +#[ignore = "needs an installed hhvm executable plus ExecutableFinder/ProcessExecutor; skipped in PHP when hhvm is absent"] +fn test_hhvm_version_when_executing_in_php() { + todo!() +} diff --git a/crates/shirabe/tests/platform/main.rs b/crates/shirabe/tests/platform/main.rs index ec5caf5..936049a 100644 --- a/crates/shirabe/tests/platform/main.rs +++ b/crates/shirabe/tests/platform/main.rs @@ -1,2 +1,3 @@ +mod hhvm_detector_test; mod runtime_test; mod version_test; diff --git a/crates/shirabe/tests/util/main.rs b/crates/shirabe/tests/util/main.rs index 1fb221b..4327bda 100644 --- a/crates/shirabe/tests/util/main.rs +++ b/crates/shirabe/tests/util/main.rs @@ -8,5 +8,6 @@ mod package_sorter_test; mod platform_test; mod silencer_test; mod tar_test; +mod tls_helper_test; mod url_test; mod zip_test; diff --git a/crates/shirabe/tests/util/tls_helper_test.rs b/crates/shirabe/tests/util/tls_helper_test.rs index 13abf77..260ff47 100644 --- a/crates/shirabe/tests/util/tls_helper_test.rs +++ b/crates/shirabe/tests/util/tls_helper_test.rs @@ -1 +1,13 @@ //! ref: composer/tests/Composer/Test/Util/TlsHelperTest.php + +#[test] +#[ignore = "Composer\\Util\\TlsHelper is not yet ported"] +fn test_check_certificate_host() { + todo!() +} + +#[test] +#[ignore = "Composer\\Util\\TlsHelper is not yet ported"] +fn test_get_certificate_names() { + todo!() +} -- cgit v1.3.1