diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 05:09:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 05:09:56 +0900 |
| commit | 25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0 (patch) | |
| tree | 0974de4f5e7a19415f2bcda9adc34cb95263b2e9 /crates/shirabe/tests/json | |
| parent | b07f3a9f51d7ce5ea8ee4dc45da7fe9a55b7f1d4 (diff) | |
| download | php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.gz php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.zst php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.zip | |
test: port downloader/installer/io/json/event-dispatcher/functional stubs
All ignored: these mock IO/HttpDownloader (curl)/ProcessExecutor/installers,
use ZipArchive/JsonManipulator todo!()s, need Symfony console or schema
validation, reflect into ClassLoader, or run end-to-end install/functional
fixtures. Wires up the event_dispatcher test target.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/json')
| -rw-r--r-- | crates/shirabe/tests/json/composer_schema_test.rs | 18 | ||||
| -rw-r--r-- | crates/shirabe/tests/json/main.rs | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/crates/shirabe/tests/json/composer_schema_test.rs b/crates/shirabe/tests/json/composer_schema_test.rs index abf310f..044bec1 100644 --- a/crates/shirabe/tests/json/composer_schema_test.rs +++ b/crates/shirabe/tests/json/composer_schema_test.rs @@ -1 +1,19 @@ //! ref: composer/tests/Composer/Test/Json/ComposerSchemaTest.php + +// These validate documents against the bundled composer-schema.json via JsonFile's +// json-schema validator, which is not ported. +macro_rules! stub { + ($name:ident) => { + #[test] + #[ignore = "needs JsonFile schema validation against the bundled composer-schema.json (not ported)"] + fn $name() { + todo!() + } + }; +} + +stub!(test_name_pattern); +stub!(test_version_pattern); +stub!(test_optional_abandoned_property); +stub!(test_require_types); +stub!(test_minimum_stability_values); diff --git a/crates/shirabe/tests/json/main.rs b/crates/shirabe/tests/json/main.rs index 279b5b5..3034990 100644 --- a/crates/shirabe/tests/json/main.rs +++ b/crates/shirabe/tests/json/main.rs @@ -1,3 +1,4 @@ +mod composer_schema_test; mod json_file_test; mod json_manipulator_test; mod json_formatter_test; |
