diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:51:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 03:51:59 +0900 |
| commit | 27b73a9d4e27027bd34c0068989ce0609bdc6e9f (patch) | |
| tree | d23681a1a78ba3c75d8b3eff738a0ad10c50f926 /crates/shirabe/tests/util | |
| parent | 25d368d3edf77fe9833c7d2cdefc6242cfec8ebe (diff) | |
| download | php-shirabe-27b73a9d4e27027bd34c0068989ce0609bdc6e9f.tar.gz php-shirabe-27b73a9d4e27027bd34c0068989ce0609bdc6e9f.tar.zst php-shirabe-27b73a9d4e27027bd34c0068989ce0609bdc6e9f.zip | |
test: port ClassLoader/HttpDownloader/Reinstall command tests
ClassLoader::getPrefixes verified; loadClass/serializability rely on PHP
runtime class loading and serialize() (stubbed). HttpDownloader and Reinstall
need curl/ApplicationTester (stubbed). Wires up the autoload test target.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util')
| -rw-r--r-- | crates/shirabe/tests/util/http_downloader_test.rs | 12 | ||||
| -rw-r--r-- | crates/shirabe/tests/util/main.rs | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/crates/shirabe/tests/util/http_downloader_test.rs b/crates/shirabe/tests/util/http_downloader_test.rs index e7fcb7b..238fe83 100644 --- a/crates/shirabe/tests/util/http_downloader_test.rs +++ b/crates/shirabe/tests/util/http_downloader_test.rs @@ -1 +1,13 @@ //! ref: composer/tests/Composer/Test/Util/HttpDownloaderTest.php + +#[test] +#[ignore = "constructs a real HttpDownloader (curl_multi_init is todo!()) and mocks a Config; performs a network request"] +fn test_capture_authentication_params_from_url() { + todo!() +} + +#[test] +#[ignore = "constructs a real HttpDownloader (curl_multi_init is todo!()) and mocks a Config; performs a network request"] +fn test_output_warnings() { + todo!() +} diff --git a/crates/shirabe/tests/util/main.rs b/crates/shirabe/tests/util/main.rs index 4327bda..6165e54 100644 --- a/crates/shirabe/tests/util/main.rs +++ b/crates/shirabe/tests/util/main.rs @@ -2,6 +2,7 @@ mod config_validator_test; mod error_handler_test; mod forgejo_url_test; mod http; +mod http_downloader_test; mod metadata_minifier_test; mod no_proxy_pattern_test; mod package_sorter_test; |
