diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:49:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:49:40 +0900 |
| commit | 25d368d3edf77fe9833c7d2cdefc6242cfec8ebe (patch) | |
| tree | bc708748984699ea98e7491c4a682041b04388e3 /crates/shirabe | |
| parent | aa4796137fcdca0fee354ac75fad62092503c865 (diff) | |
| download | php-shirabe-25d368d3edf77fe9833c7d2cdefc6242cfec8ebe.tar.gz php-shirabe-25d368d3edf77fe9833c7d2cdefc6242cfec8ebe.tar.zst php-shirabe-25d368d3edf77fe9833c7d2cdefc6242cfec8ebe.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe')
| -rw-r--r-- | crates/shirabe/tests/platform/hhvm_detector_test.rs | 12 | ||||
| -rw-r--r-- | crates/shirabe/tests/platform/main.rs | 1 | ||||
| -rw-r--r-- | crates/shirabe/tests/util/main.rs | 1 | ||||
| -rw-r--r-- | crates/shirabe/tests/util/tls_helper_test.rs | 12 |
4 files changed, 26 insertions, 0 deletions
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!() +} |
